Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Railscasts' complex forms - refactoring with LowPro
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Tim Chater  
View profile   Translate to Translated (View Original)
 More options 24 Jan 2008, 13:39
From: Tim Chater <t.cha...@gmail.com>
Date: Thu, 24 Jan 2008 05:39:15 -0800 (PST)
Local: Thurs 24 Jan 2008 13:39
Subject: Railscasts' complex forms - refactoring with LowPro
Hello

I'm sure some of you are familiar with Ryan Bates' weekly tutorials on
railscasts.com. A few months ago there was a three-part series
(episodes 73-75) about creating/editing multiple models in one form.
I'm trying to achieve the same but not use obtrusive things like
link_to_function.

Mostly this has been easy enough, but I'm not sure how to rewrite the
add_task_link function (which Ryan makes into a helper at the end of
episode 74):

# projects_helper.rb
def add_task_link(name)
  link_to_function name do |page|
    page.insert_html :bottom, :tasks, :partial => 'task', :object =>
Task.new
  end
end

How do I deal with this?

Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google