search for: item_attributes

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

2006 Apr 05
1
number_to_currency inside model
...field called regular_price which holds a currency amount. I would like to do something like what''s below, but I get the following error message: undefined method `number_to_currency'' for #<Item:0x2479430> Here is the model. class Item < ActiveRecord::Base has_many :item_attributes, :order => ''a_order'' def regular_price number_to_currency(self) end end Not sure why it''s not finding the number_to_currency helper. Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
4
using onchange options in forms
Hello, I''m trying to get a select field to update a view via the ''onchange'' option. I''ve seen examples of it here in the forum where people hardcode the forms and use javascript to trigger the change (and nearly all have complained that it''s a hack) and I''m wondering if anyone has a more elegant solution using the embedded ruby methods?
2006 Mar 15
2
Inventory Project
I am trying to write a inventory web application with RoR so that I can keep track of hardware and software purchased by the company. I would also like to be able to associate products we buy with users and departments. I would like it if you could enter in products (since we purchase many of the same) into a product list. Then you could add a user or department and check off which products he