Try for
<% form_for @activity do |form| %>

:)

Bala


On Tue, Sep 9, 2008 at 4:53 PM, CountBrass <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> I get this error:
>
> Showing workouts/show.html.erb where line #14 raised:
>
> undefined method `activities_path' for #<ActionView::Base:0x720828>
> Extracted source (around line #14):
>
> 11:
> 12:     <h1>Add an exercise to this Workout</h1>
> 13:     <div id="submitArea" class="formEnd">
> 14:             <% form_for(:activity, :url => activities_path(@workout))
> do |f|
> %>
> 15:                     <% render :partial => 'activities/form', :locals =>
> {:f => f}%>
> 16:             <% end %>
> 17:     </div>
>
> The top of my routes.rb looks like this:
>
> ActionController::Routing::Routes.draw do |map|
>
>  map.resources :workouts do |workout|
>    workout.resources :activities
>  end
> .
> .
>
> Can anyone give me a clue about what I've done wrong?
>
> Edward
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to