<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - trouble creating advanced wizard style functionality]]></title>
		<link>http://railsforum.com/viewtopic.php?id=53648</link>
		<description><![CDATA[The most recent posts in trouble creating advanced wizard style functionality.]]></description>
		<lastBuildDate>Wed, 27 Feb 2013 14:47:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: trouble creating advanced wizard style functionality]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160717#p160717</link>
			<description><![CDATA[<p>@anso : thanks, I have the model relationships setup correctly I&#039;m just confused about how to implement it on the controller/view side of things.</p>]]></description>
			<author><![CDATA[dummy@example.com (turbo2oh)]]></author>
			<pubDate>Wed, 27 Feb 2013 14:47:08 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160717#p160717</guid>
		</item>
		<item>
			<title><![CDATA[Re: trouble creating advanced wizard style functionality]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160709#p160709</link>
			<description><![CDATA[<p>Hi<br />I&#039;m fairly new to Rails too but I guess a &quot;has through&quot; relationship can be the way to achieve this (<a href="http://guides.rubyonrails.org/association_basics.html#the-has_many-through-association">http://guides.rubyonrails.org/associati &#133; ssociation</a> and <a href="http://guides.rubyonrails.org/association_basics.html#the-has_one-through-association,">http://guides.rubyonrails.org/associati &#133; sociation,</a> ... Something like </p><div class="codebox"><pre><code>    meeting has_many locations 
    meeting has one start_date through location
    meeting has one end_date through location</code></pre></div><p>and of course the opposite associations in the related models </p><p>Hope this helps you a bit or at least put you on the right way<br />Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (anso)]]></author>
			<pubDate>Wed, 27 Feb 2013 09:18:09 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160709#p160709</guid>
		</item>
		<item>
			<title><![CDATA[trouble creating advanced wizard style functionality]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160702#p160702</link>
			<description><![CDATA[<p>I&#039;m fairly new to rails and not sure how to handle this situation. I&#039;m trying to allow the user to create a meeting, add as many locations for the meeting as they&#039;d like, then add as many dates for each of those locations as they&#039;d like in a wizard style form.</p><p>I have the first piece working correctly, the user can create the meeting and add as many locations as they like using fields_for the locations (meeting has many locations).</p><p>What I&#039;m struggling with is how do I then allow them to add several dates for each location. Adding a date is really creating an record that has a meetingID, a locationID, and two date fields.</p><p>A few questions:<br />1) It seems to me the first piece (creating the meeting and its children locations) will have to be one action (create method in the meeting controller) so that the new location IDs will be available in order to facilitate adding dates for each location is that correct?</p><p>2) If that is is the case, what controller/action should adding the dates for each location be in? Another action in the meeting controller? Or in the date controller?</p><p>3) Any other advice/guidance is much appreciated!</p><p>Thanks!<br />Phil</p>]]></description>
			<author><![CDATA[dummy@example.com (turbo2oh)]]></author>
			<pubDate>Tue, 26 Feb 2013 21:34:25 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160702#p160702</guid>
		</item>
	</channel>
</rss>
