search for: new_book_path

Displaying 3 results from an estimated 3 matches for "new_book_path".

2009 Sep 14
2
Set a select box with default value selected
I am relating to the book & subject example mentioned in the tutorial mentioned here: http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-examples.htm There is a file that goes like show_subjects.html.erb and it will list all the books for that particular subject we''ve selected. Suppose if there were no books to show for the subject we can ideally show a corresponding message
2011 Feb 03
1
How to transfer a javascript value into a symbol used in Ruby on Rails
...t;%= link_to ''Destroy'', book, :confirm => ''Are you sure?'', :method => :delete %></td> </tr> <% end %> </table> <%= will_paginate @books %> <br /> <%= link_to ''New book'', new_book_path %> An interesting excerpt from the aforementioned tutorial link is given below: The value of the selected date can be accessed by getting the value of the text field named calendar. Using the Prototype Javascript Library, you can do the following to get the value. $F(''ca...
2011 Apr 25
30
NoMethodError in Book
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name'' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <div id="error_explanation"> <h2><%=