rails-routing
multiple routing filter in rails 3
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[详细]
2023-02-26 02:07 分类:问答Rails association fails on Heroku but works on local box?
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:[详细]
2023-02-23 03:55 分类:问答Routing problem in rails
// see below for update Error: No route matches {:controller=>\"conversations\", :action=>\"reply\", :id=>nil, :board_id=>nil}[详细]
2023-02-21 20:26 分类:问答Rails3 Engine -- Controller scoped inside engine module returning load error by client app
I just created my first engine. It adds a couple of new routes like so: Rails.application.routes.draw do[详细]
2023-02-19 19:23 分类:问答How to dynamically add a route to a scoped resource in Rails3?
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.[详细]
2023-02-18 12:38 分类:问答Rails routing problem, action being skipped
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.[详细]
2023-02-18 05:53 分类:问答Routes with Dash `-` Instead of Underscore `_` in Ruby on Rails
I want my urls to use dash - instead of underscore _ as word separators. For example controller/my-action instead of controller/my_action.[详细]
2023-02-17 13:19 分类:问答How do you test namespace post :post routes?
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[详细]
2023-02-14 21:24 分类:问答No route matches "/subscribers/create"
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:[详细]
2023-02-14 15:34 分类:问答Rails 3 app will not match a route even though rake routes shows it
Here is a portion of my routes file: resource :vendor do post \'modify_account\' end Running rake routes will generate the following line[详细]
2023-02-04 06:07 分类:问答