You can use something like this
get 'venue/:name:', to: 'venues#show'
class VenueController
def show
# render the view by checking params[:name]
end
end
Check the above linked routing guide for more details
On Mon, Oct 16, 2017 at 12:58 AM, Hassan Schroeder <
Issue here is, you are using master branch of ransack and ransack removed
support for rails 4.x few days back. You will have to downgrade ransack or
upgrade your rails version to fix this
Here is the relevant commit in ransack
You can find rationale from original PR which introduced this feature
https://github.com/rails/rails/pull/22567
On Fri, Mar 9, 2018 at 8:28 PM, fugee ohu wrote:
> Why create an ApplicationRecord class inheriting from ActiveRecord::Base
> and then have all models inherit
3 matches
Mail list logo