search for: m000206

Displaying 6 results from an estimated 6 matches for "m000206".

2006 Sep 10
11
Using partials with Markaby
I''m trying to use a partial from within Markaby. I haven''t been able to figure out how to access a parameter passed into the partial. Here''s the code I''m using: h1 "Create a new note" if @note render :partial => ''form/errors'', :record => @note end ... (that snippet, as well as the partial is stolen shamelessly from Restolog
2006 May 30
6
Reuse Partials
Hi all, This is my first official post as RoR developer, so here it is. I''ve got a partial for a Address (Postcode, Address, City, ...). I want to use this partial multiple times on the same form? So I want to fill in multiple addresses and insert them individualy. How do I go about doing this? Kind Regards, Eugene Louw -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello, Maybe this is super-trivial... I need to have a list of links on the left hand side of my application, for *every* single page. So, I''ve created a layout called "main" (main.rhtml) under view/layouts, and included >layout "main"< in pretty all of my controllers. main.rhtml has, amongst all the other HTML stuff: <%= render_component
2006 Jul 26
4
can you pass data when you render :action
how can i do: render :action => "headline", :id => @user.id Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 Apr 21
2
Passing Variables to a sub template
Hi, I must be missing something very basic here. I have a parent template and I am calling a sub template like... <%= render( :partial => "window_title_bar", {"heading" => "Product Details"}) %> and in the sub template (_window_title_bar.rhtml), i am doing Heading: <%= heading %> but I am getting syntax error in the master template at line