Displaying 3 results from an estimated 3 matches for "books_path".
2008 Mar 23
1
Object creation when the controller is a subclass of AdminController
...m generates it''s action path for books, not Admin Books even
though it''s within the views/admin/book folder.
My form is very simple...
form_for @book do |f|..., whose action should be admin/book/create (or
new?, it''s RESTful).
With this, loading book/new tells me "books_path not found". Does my
application not recognize that the current view is under the admin/
folder? Do I have to specify the url?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2011 Feb 03
1
How to transfer a javascript value into a symbol used in Ruby on Rails
...s way of save/assigning doesn''t work -->
</p>
<br />
<br />
<br />
<br />
<p>
<%= f.submit "Create" %>
</p>
<% end %>
<%= link_to ''Back'', books_path %>
Also once I save it perfectly, could you also please tell me how would
I be able to display this date it in my index.html.erb
My current index.html.erb looks like this:
<h1>Listing books</h1>
<table>
<tr>
<th>Title</th>...
2010 Aug 01
0
fields_for can not group its params when ajax
...quot;=>""},
{"color"=>""}]\
My page and params are listed below.please help me,this take me a whole
day.
new_book page:
<div><%=error_messages_for :book-%></div>
<%form_remote_for :book,@book,:update=>"book{@book.id}",:url=>books_path
do|v|%>
<table>
<tr>
<td><%=v.label "name"-%></td>
<td><%=v.text_field :name-%></td>
</tr>
</table>
<div id="pages">
<%=render :partial=>''pa...