Displaying 1 result from an estimated 1 matches for "main_data_feed".
2007 Mar 08
2
Rendering a view from a model
Hi peoples.
I have the following class method in a Rails model, in which I retrieve
some objects from the DB...
@bubbles = Bubble.find(:all, :limit => 30) # What is the limit?
open( "public/xml_data/main_data_feed.xml", "w" ) { | l | l.write
ERB.new( IO.read( File.join( RAILS_ROOT,
"app/views/rssfeed/bubbles.rhtml" ) ) ).result }
When I attempt to run this with runner I get the following error...
./script/runner XmlInterface.generate
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/li...