3 ms·
You still can use the workaround: http://usesthis.com/interviews/_why http://usesthis.com/interviews/_why Thanks to the code: get '/interviews/:slug/?' do |
by oneearedrabbit 17y ago
You still can use the workaround: http://usesthis.com/interviews/_why http://usesthis.com/interviews/_why
Thanks to the code:
get '/interviews/:slug/?' do |slug|
@interview = Interview.first(:slug => slug)
raise not_found unless @interview
haml :'interviews/show'
end