search for: add_book

Displaying 4 results from an estimated 4 matches for "add_book".

2006 Apr 05
3
CRUD pattern for has_many relationships (forms containing collections)?
...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"} :update => "books_list" %> <div id="books_list"> <%= render :partial => "books/book", :collection => author.books %> </div> ...and in authors_controller.rb def new session[:books] = Array.new end def add_boo...
2006 Nov 29
0
[761] trunk/wxruby2: Initial commit of HtmlHelpController & HelpController support + doc,
...ierarchical contents listing, index, keyword search and +bookmarking. </ins><span class="cx"> </span><del>-This help controller provides an easy way of displaying HTML help in your -application (see _test_ sample). The help system is based on *books* -(see "add_book":#HtmlHelpController_addbook). A book is a logical -section of documentation (for example "User''s Guide" or "Programmer''s Guide" or -"C++ Reference" or "Widgets Reference"). The help controller can handle as -many books as you want. &lt...
2006 Dec 04
5
ruby on rails ecommerce tests are failing, but why?
...working through the Beginning Ruby on Rails Ecommerce book and on page 101 where it is talking about integration tests, i run test/integration/book_test.rb and it fails giving me the following error message: 1) Failure: test_book_administration(BookTest) [test/integration/book_test.rb:45:in `add_book'' test/integration/book_test.rb:11:in `test_book_administration'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:431:in `run'']: expected tag, but no tag found matching {:content=>"Ruby for Dummies", :tag=>&quot...
2006 Dec 12
0
[782] trunk/wxruby2/samples/bigdemo: HtmlHelpWindow sample with helpfile
...;', + Wx::Point.new(50,50)) + + evt_button(b.get_id) { on_button } + end + + def on_button + help = Wx::HtmlHelpController.instance + help_file = File.join( File.dirname(__FILE__), ''helpfile.htb'') + exit if not File.exists?(help_file) + help.add_book( File.expand_path(help_file), false ) + help.display_contents + end +end + +module Demo + def Demo.run(frame, nb, log) + TestPanel.new(nb, log) + end + + def Demo.overview + "Wx::HtmlHelpController is a sophisticated viewer for online help\n" + + "document...