search for: body_content

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

2006 Feb 14
1
Another HABTM Question
...class Posting < ActiveRecord::Base has_and_belongs_to_many :categories end In my blog_controller, where the actual posting is saved, is where I think I''m having some trouble. Here''s what I currently have to save a post: def create @posting = Posting.new(params[:posting]) body_content = @posting.body body_content.gsub!( /(.*)(\n)/, ''\1<br />'' ) @posting.body = body_content @posting.save! @posting.user_id = session[:user_id] logger.debug("Saving the post.") if @posting.save flash[:notice] = ''Posting was successfully created....
2006 Jun 26
0
Using a partial multiple times in a view
..."body_top"> <%= render_partial ''shared/page_header_image'', ''image'' => ''/images/system.gif'' %> <%= render_partial ''shared/page_menu'' %> </div> <!-- body_top --> <div class="body_content"> <h1>Overview</h1> <%= render_partial ''shared/grid'', ''title'' => ''Filesystems'' ,''cols'' => 6 %> <h3>System</h3> <%= render_partial ''shared/grid''...
2006 Apr 17
1
Effect.appear
Hi all, Is there a way to use the onLoad event of a page to start the Effect.appeareffect? I''m trying like this, unfortunatly this does not work: <html> <head> <%= javascript_include_tag :defaults %> </head> <body onload="new Effect.Appear(this);"> My Body </body> </html> Any idea how to get this to work? Kind regards, Harm de