Skip to content

Instantly share code, notes, and snippets.

rake db:automigrate
(in /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop)
Loading init file from /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/init.rb
Loading /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/environments/development.rb
Loading init file from /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/init.rb
Loading /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/environments/rake.rb
rake aborted!
default store already setup
/PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/rakefile:24
(See full trace by running task with --trace)
[518] Mercredi 17/12/2008 08:07:04 CET +0100
[RubyLearning/Merb/ruby_bookshop
$ merb
Loading init file from /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/init.rb
Loading /PortefeuillePartage/Ruby/RubyLearning/Merb/ruby_bookshop/config/environments/development.rb
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 4178
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
in _form.html.erb
<%= error_messages_for @books %>
<p>Name of book: <%= text_field :name, :size =>"40" %></p>
<p><%= "&nbsp;" * 13 %>Author: <%= select :author_id, :collection => Author.all.map {|u| [u.id, full_name(u.first_name, u.last_name)]} %>
<p><%= "&nbsp;" * 5 %>Description: <%= text_area :description, :cols => "40", :rows => "2", :wrap => "SOFT" %></p>
<p><%= "&nbsp;" * 17 %>Price: <%= text_field :price, :size => "7" %></p>