friendly-id
ActiveRecord::ReadOnlyRecord when using ActiveAdmin and Friendly_id
I started using ActiveAdmin recently in a project and almost everything works great but I\'m having a problem when using it in combination with the friendly_id gem.I\'m getting ActiveRecord::ReadOnlyR[详细]
2023-04-11 22:28 分类:问答Using Friendly ID and i18n with update_attributes causes overwrite
Using: - Rails 3.0.3 - Friendly_id 4.0.0 Beta 11 - Windows - i18n (0.6.0, 0.5.0) according to \"gem list\"[详细]
2023-04-05 21:04 分类:问答Rails 3: how to use gsub or to replace whitespace characters with "-"?
I have an Artist model is name:string. and I want /u开发者_C百科sers/1/artists/jimi-hendrix/posts instead of what I have now which is /users/1/artists/1/posts[详细]
2023-03-24 13:11 分类:问答Rails - FriendlyId and Conditions
I have a model posts, which belongs_to category (which uses friendly_id). Now i want to list all Posts in an Category. To get the index page i want to use a link like: http://mysite/posts/category/_ca[详细]
2023-03-24 06:22 分类:问答How do I fix NoMethodErrod on Controller#create caused by FriendlyId
I have a rails app that uses the FriendlyId gem and recently I\'ve started to get NoMethodErrors in development and test.This problem has only started recently and we\'re a couple of iterations into t[详细]
2023-03-20 17:33 分类:问答How to user defined friendly URLs in Rails 3?
Now i have something like this http://myapp.com/pages/1 http://myapp.com/pages/2 http://myapp.com/pages/3[详细]
2023-03-20 04:11 分类:问答Heroku, cron.rake and friendly_id gem
I\'m using the friendly_id gem. There\'s a rake task for deleting old slugs (from the docs): rake friendly_id:remove_old_slugs MODEL=<model name> DAYS=<days>[详细]
2023-03-09 04:26 分类:问答Rails: friendly_id and to_json
I have a collection of model objects that I am trying to return JSON for.E.G @regions.to_json(:only => [:id, :name ])[详细]
2023-03-07 04:05 分类:问答RoutingError on empty field, conflicting with friendly_id
I have a edit form for @users. In there I have a text_field :username <%= form_for @user, :url => { :action => \"update\" } do |f| %>[详细]
2023-02-16 21:16 分类:问答Is the slugs table required when using the friendly_id gem?
In the friendly_id gem docs it says to create a table slugs where all slugs are created. But in addition it gives me the opportunity to add a column to my model table to increase performance using cac[详细]
2023-02-08 01:19 分类:问答