Displaying 9 results from an estimated 9 matches for "cain_152".
2006 Aug 04
14
Printing an Order
Can Rails be used for printing an order in a store application that has
arrived?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 27
2
Agile Web Development Problem
I am following that book, and I bump into this error in the Cart
Creation Chapter. Can anyone help me?
NoMethodError in Store#display_cart
Showing app/views/store/display_cart.rhtml where line #6 raised:
undefined method `product'' for 666.0:Float
--
Posted via http://www.ruby-forum.com/.
2006 Aug 05
5
Searching a database
If I have a list of items, how can I search some item in the list, by
some criteria or something else?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 02
7
Same error ... again.
I reached page 82 of the Book "Agile Development with Rails" First
Edition. After I compiled the code I got the following error message.
[CODE]
NoMethodError in Store#display_cart
Showing app/views/store/display_cart.rhtml where line #11 raised:
undefined method `product'' for 1099.0:Float
8: <table>
9: <%
10: for item in @items
11: product = item.product
12:
2006 Aug 04
6
Errors ... errors and errors.
I bought the second edition of the ruby on rails, it seems to work fine
now, did some adjustments to the code. But now I get a second error and
I want to learn to understand to fix them myself. So here is the error.
ArgumentError in StoreController#add_to_cart
wrong number of arguments (1 for 0)
#{RAILS_ROOT}/app/models/cart.rb:15:in `initialize''
#{RAILS_ROOT}/app/models/cart.rb:15:in
2006 Aug 05
1
Mapping Models to Databases
I know that rails is smart so if I create a model let''s say "Object", he
will map it to the table pluralization like the table "objects". But
what happens when I have an obscure table named like ss_gd_objects? How
can I tie it to a model?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 05
0
Question on Rails application design
I am following the Agile Development with Ruby on Rails, both the Beta
and the First Edition Books, and I was wondering something. I am working
on a simple book-management aplication for our software development
firm. It will be used strictly by some 20-30 offline computers, with
only an administrator that will be adding, auditing and deleting books
from the database, and an employee who can
2006 Aug 05
1
Viewer Problem
In a standard scaffold generator, the list.rhtml looks something like
this ...
<% for column in Book.content_columns %>
<th><%= column.human_name %></th>
<% end %>
How can I modify this code so for each table column add my own name not
the "human_name" generated code?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 07
0
Adding Translations
How can I change translations, for example I have an "date" field in a
MySQL Database, and Rails generated a nice data controller, but instead
of March, April, June I want the translations to be in my own language.
What class and/or file do I need to modifiy to achieve this?
--
Posted via http://www.ruby-forum.com/.