[Rails] SystemExit: exit

2010-08-03 Thread Pale Horse
ActionView::TemplateError (SystemExit: exit: SELECT * FROM product_stocklevels WHERE (product_stocklevels.product_id = 831 AND (size = 'W44 L 32' AND stock > 0)) LIMIT 1) Before I paste more code, has anyone come across this before? -- Posted via http://www.ruby-forum.com/. -- You received thi

Re: [Rails] Generating .mo with Rails 2.1.0

2010-08-03 Thread BrĂ¡ulio B O Bhavamitra
Already fixed... just removed the unecessary option -rgettext/rails from command line 2010/8/2 BrĂ¡ulio Bhavamitra > Hello all, > > I'm a newbie to Ruby/Rails world, and also to the application I'm > trying to use: Noosfero. > > The thing is, i'm trying to run 'rake makemo' with no success.. > $/

Re: [Rails] Complex associations

2010-08-03 Thread Angel Robert Marquez
class Store < ActiveRecord::Base has_many: store_type has_many: product_type, :through => department class Department < ActiveRecord::Base belongs_to: store belongs_to: product class Product < ActiveRecord::Base has_many :departments has_many :stores, :through => department end I think you n

[Rails] how to configure rails to use mysql by default (not sqlite3)

2010-08-03 Thread Olivier Db
Hello, I am running Mac OS X 10.6.4 and have installed the following: ruby-1.9.1-p429 (64 bits, I believe!) RubyGems 1.3.7 Rails 2.3.8 MySQL 5.1.49 (64 bits) I am now getting an error because sqlite3 is not installed and I've read that there are issues installing ruby-sqlite3! SO I'm not sure if

[Rails] Re: The Future OF RUBY and RUBY ON RAILS

2010-08-03 Thread Phoenix Rising
Dave gets +1 awesome on the "missing the java boat" point. Same deal here. Ruby is a great language. Rails is a great framework. There's no rule that says that this technology CAN'T go away, but the trend with Ruby/Rails has been "explosive growth" for the last five years or so. I've personally

Re: [Rails] Rails3-beta4: Calling to_json on an ActiveRecord::Relation causes an error

2010-08-03 Thread Conrad Taylor
On Mon, Aug 2, 2010 at 2:26 PM, wprater wrote: > Here is my model and an attempt to convert to json. Whether there is > data returned or not, a circular reference error is thrown. How can I > avoid this? > > wprater, I would recommend trying Rails 3 RC by doing the following: gem install rails

<    1   2