| re: Updating Individual database fields
This is my form partial.
================================================== ===
<%= error_messages_for 'book' %>
<!--[form:book]-->
<p><label for="book_title">Title</label><br/>
<%= text_field 'book', 'title' %></p>
<p><label for="book_price">Price</label><br/>
<%= text_field 'book', 'price' %></p>
<p><label for="book_description">Description</label><br/>
<%= text_area 'book', 'description' %></p>
<p><label for="book_created_at">Created at</label><br/>
<%= datetime_select 'book', 'created_at' %></p>
<p><label for="book_updated_at">Updated at</label><br/>
<%= datetime_select 'book', 'updated_at' %></p>
<!--[eoform:book]-->
================================================== ===
and this the error message i get when i click on edit
================================================== ===
Showing app/views/books/edit.rhtml where line #11 raised:
compile error
C:/railsapps/library/app/views/books/edit.rhtml:11: syntax error, unexpected kEND, expecting $end
Extracted source (around line #11):
8: <%= link_to 'Show', :action => 'show', :id => @book %> |
9: <%= link_to 'Back', :action => 'list' %>
Trace of template inclusion: /app/views/books/edit.rhtml
RAILS_ROOT: ./script/../config/..
================================================== ===
|