singular and plural rails the same resources ambiguous routes solution

sponsored links
Today, a single complex encounter the same resources

map.resources: series

Run Times

you may have ambiguous routes Error

Solution:

map.resources: series, singular =>: series_instance

This becomes

series get / series

post / series

new_series_instance get / series / new
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of singular and plural rails the same resources ambiguous routes solution

  • dwr addRows Ways

    Such examples have been much better online, the main options are the many parameters of usage, their hair under the backup, also hope to help everyone. addRows 4 parameters separately for the table (table, tbody, thead, tfoot, recommend using the back of

  • Rails library after updating to Rails 2.3.0 ......

    Rails library from Rails 2.3.0 to 2.2.2 update after the deployment of your original application under 2.2.2, the need to manually edit some documents, in order to successfully run the application: ①, modified: config / environment.rb Find: RAILS_GEM_VERS

  • Xls and csv export Ruby's utf-8 problem

    Database data for utf-8 format, including Chinese and Latin and so on Xls export file format and csv format will be garbled when the situation 0, the premise of At database.yml using utf8 encoding connect to database: 1, xls Use spreadsheet Version 0 ...

  • Rest of Rails routing

    In the rails application, routes.rb routing has three main ways. 1: map.connect # for routing the admin/customers section map.connect '/superadmin/user_asset/list_assets', :controller => "superadmin/user_asset",:action=>'list_assets' map.connect '/s

  • prototype of Ajax.updater () method

    bring their own rails in prototype.js <a href="javascript:void addlist('cunzhuang',cunzhuangs,zoomlarger)"> village </ a> | Cunzhuang''in rthml is another page in ror should not increase in rhtml suffix html or. ...

  • Rails use of select

    Assumptions have the following drop-down list box In the rails in the implementation of such a list box, you can use the following method 1) The use of select 2) Use select_tag 3) Use collection_select

  • Using Ruby to call mssql (sqlserver) of ntext type unicode, etc.

    When the number of library visits unicode -> utf8 or gb2312 unicode2utf8 from http://yuweijun.blogspot.com/2008/12/rubyunicodeutf8.html be

  • JS after ajax request return of the problem can not be implemented

    1: Send ajax request, in the onComplete, if back when the html contains a javascript, then these javascrip and will not be realized, it does not mean not to implement. This problem has troubled me for a long time, behind the hair and then put this kn ...

  • [Ask] Rest nested resources helper method

    (Novice, studying RestFul_Rails, rails 2.2.2) Nested resource definition is as follows: And in the project under the index view using the following code: Results page error: iterations_path undefined I would like to ask how are going on? The teaching ...

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries