search for: book_controller

Displaying 5 results from an estimated 5 matches for "book_controller".

Did you mean: books_controller
2006 Jan 02
2
HTML Fragment not Loading in Firefox; Fine Elsewhere
Ok, this has got me going a bit crazy. I have an HTML fragment being returned for the result to an AJAX query. It works fine in Safari or from curl (and even in IE/Mac), but utterly fails to load in Firefox, even if I point directly to the URL, skipping all that AJAX stuff in between. (The server logs show a 200 response, regardless of which browser is being used.) I''ve verified
2006 Feb 13
1
autocomplete input field name
...d a author with auto complete: show.rhtml ... <form action="/book/addauthor" method="get"> <%= text_field_with_auto_complete :author, :name %></p> <input name="bookid" value="<%= @book.id %>" type="hidden"> ... book_controller.rb class BookController < ApplicationController auto_complete_for :author, :name, :limit => 5 def addauthor @book = Book.find(params[:bookid]) @author = Author.find_by_name(params[:authorname]) @book.authors.push(@author) redirect_to :controller => ''book'',...
2006 Jan 05
1
recipes/categories to books/authors but listing doesn''t work
...d> 18: </tr> 19: <% end %> 20: </table> but as far as I can tell I have done the right things in the controllers, models and views: author_controller.rb: @authors = Author.find :all, :order => ''last_name, first_name'' book_controller.rb: @books = Book.find :all, :order => ''title, back'' author.rb: has_many :books book.rb: belongs_to :author book/list.rhtml: <table border="0"> <tr> <td width="60%"><p align="left"...
2010 Aug 24
11
will_paginate problem
Hi I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14 I have table name books. I am doing this code for pagination, In book_controller @@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@ & in index.html.erb @@@@@<%= will_paginate @books %>@@@@@ Also added in environment.rb file this line @@@@@ require ''will_paginate''@@@@@ After adding this when I am running “””ruby script/s...
2005 Dec 29
8
First module gives "unknown action"
Hi, I''m using "Agile Web Dev. w/Rails", which is great but has a minimum on grouping controllers into modules. I''ve successfully generated a module scaffold, so I have: app/controllers/admin_controller.rb app/controllers/admin/things_controller.rb (And the rest of the scaffold output, which seems normal.) However, browsing to http://localhost:3000/admin/things/