Displaying 3 results from an estimated 3 matches for "_book".
Did you mean:
_boot
2006 Jan 02
2
Getting Index When Using render :partial
I''m using a web service to retrieve an array of results to a search
and a render :partial to display those results to the user, while at
the same time putting the results into the session. Is there a way
for my _book.rhtml file to have access to the index of the result
currently being displayed, like each_with_index makes available to
its block? This would allow me to have the client pass back the index
and pull the data from the session, thus assuring that the client
hasn''t fooled with it.
Th...
2005 Sep 06
0
AstriCon Update: Please Register ASAP - Free Phones
_Book Your Hotel Room Today_
We're now a little more than a month away from AstriCon 2005 - The
Asterisk Conference and Exhibition. We need everyone who plans on
attending to register with the Hyatt ASAP to ensure we have enough
hotel rooms. (Last year in Atlanta we over-booked the hotel by over
15...
2006 Apr 05
3
CRUD pattern for has_many relationships (forms containing collections)?
...fly
addition of Books to the Author. It is important that neither the
Author nor the Books are saved to the database until the Create form
button is pressed.
My solution so far is to use the session object to keep an Array with
new Books that are not saved in the database.
I have a books/_book.rhtml partial
<p><%= text_field_tag "books[#{book.id}][title]", book.title %></p>
...an authors/_form.rhtml partial
<%= text_field "author", "name" %>
<%= link_to_remote "Add book", :url => {:action => "add_book&quo...