rails-routing
How do i access an id from the link?
I am displaying list of cities from the database ,each as a link.I want when a user click on any of the cities ,the action respond by grabbng the id of that city and re use it on the next action(show[详细]
2023-04-12 22:12 分类:问答Rails route for button
I\'m a rails newbie and a question on routes is confusing me. On one of my pages, I have a form.In that form I allow the user to fill in some needed information and press a \"submit\" button.[详细]
2023-04-10 02:56 分类:问答Rails 3 link or button that executes action in controller
In RoR 3, I just want to have a link/button that activates some action/method in the controller.Specifically, if I click on a \'update_specs\' link on a page, it should go to \'update_specs\' method i[详细]
2023-04-07 11:38 分类:问答Routing error for GET] "/firstapp"
I was trying to write my first program after installation, but I got an error like below: Routing Error[详细]
2023-04-06 17:39 分类:问答Ruby Rails Routing error
Currently, I have a table of companies, and each company has a table to store their funding data with a date and a money value, I can create new data in rails console with[详细]
2023-04-06 16:52 分类:问答Basic rails 3 routes and unknown routes (including wildcards)
I\'ve been reading about routing in Rails 3 and have been unsuccessful in achieving what I need.Still fairly new to routes in Rails 3 so I may simply be overlooking things or overcomplicating it.[详细]
2023-04-04 19:57 分类:问答Rails 3 routing : customize a resourceful route
I\'ve got some Documents (and a DocumentsController), which are sorted using limited, fixed set of categor开发者_StackOverflow中文版ies. I\'d want my routes to take into account these categories, so m[详细]
2023-04-04 17:34 分类:问答How to match hash (deep nested) params in Rails3 to make a pretty URL?
If I have this route (in routes.rb): match \'posts\', :to => \'posts#index\' It will show and match the following routes:[详细]
2023-04-04 09:03 分类:问答How do I get the format of my URLs to be username/controller/:id in Rails 3.1?
I want it similar to the way Twitter handles the URLs for its tweets. For instance, right now my URL looks like this: mydomain.com/feedbacks/1/, where feedbacks is the name of the controller.[详细]
2023-04-02 01:45 分类:问答No route matches scoped resources
rails new example rails g scaffold widget rake db:migrate Edit routes.rb as follows: scope \":year\" do resources :widgets end[详细]
2023-03-31 17:10 分类:问答