[Rails] Re: Model without database table?

2009-10-06 Thread Thomas Gendulphe
Sorry for the late answer, maybe it will be usefull for someone else. You can use the following plugin: http://agilewebdevelopment.com/plugins/activerecord_base_without_table -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Re: Call an helper method from a controller

2009-10-14 Thread Thomas Gendulphe
You can also directly instanciate a Helper object and call a method. example with number_to_currency: Object.new.extend(ActionView::Helpers::NumberHelper).number_to_currency(number, options) but beware that is there are methods of other Helpers methods, they will fail. -- Posted via

[Rails] Re: image_path without timestamp

2009-10-22 Thread Thomas Gendulphe
Hi, To disable asset_id completely, simply set the environment variable (for instance in environment.rb): ENV['RAILS_ASSET_ID'] = cheers Philip Hallstrom wrote: .swf file in public/images/flash fine. In production, the app will be deployed in a subdirectory, so the path will be

[Rails] Schema dump does not reflect column size limit

2009-11-11 Thread Thomas Gendulphe
Hi, Everything is in the title. With Rails 2.3.4 and MySQL 5.0.41: If have a table like this: +++--+-+-++ | Field | Type | Null | Key | Default | Extra |

[Rails] Re: Schema dump does not reflect column size limit

2009-11-12 Thread Thomas Gendulphe
Rob Biedenharn wrote: On Nov 11, 2009, at 4:55 AM, Thomas Gendulphe wrote: | Field | Type | Null | Key | Default | || | user_id| int(11)| YES | MUL | NULL t.datetime created_at t.boolean confirmed t.text admin_comment