I\'m already using :before_filte开发者_如何学运维r :authenticate_user! from devise but I would like to add another filter in my controllers after authenticate_user! passes. After the user authenticate
Why would I get NoMethodError on my Heroku app when the same codeworks flawlessly on my local setup? The error is triggered by this code:
// see below for update Error: No route matches {:controller=>\"conversations\", :action=>\"reply\", :id=>nil, :board_id=>nil}
I just created my first engine. It adds a couple of new routes like so: Rails.application.routes.draw do
right now I am trying to generalize some of my code. So far it went well, I wrote a few mixins which I can dynamically add to Controllers or Models in order to get things done while obeying DRY.
I\'m having a bizarre issue where it seems as if Rails is skipping the run of my particular Action. I have two environments that I am running this in. One (development) works fine and runs the action.
I want my urls to use dash - instead of underscore _ as word separators. For example controller/my-action instead of controller/my_action.
I have these route # routes.rb name开发者_JAVA百科space :admin do resources :departments end And following code in controller test. It fails because post :create is not heading to admin_departments
I copied this from a book I\'m reading and I followed all the instructions but it\'s giving me No route matches \"/subscribers/create\" erro开发者_高级运维r:
Here is a portion of my routes file: resource :vendor do post \'modify_account\' end Running rake routes will generate the following line