On 30 June 2010 23:45, Neil Bye <lists@ruby-forum.com> wrote:
> Colin Law wrote:
>> On 30 June 2010 20:40, Neil Bye <lists@ruby-forum.com> wrote:
>>>>>
>
>
>> You should not ask the same question twice.
>
> I wouldn't have but the problem was so similar.
>
> So what is the value of
>> @story.id? You could just display it on the page
>
> It depends which story is shown, that's my problem, it won't pass as a
> parameter or some reason.
Of course it depends which story is shown, it is the id of the
individual story. If the value is nil then no parameter will be
passed, if it is not nil then there should be a parameter. You can
also look at the html of the page (view page source in browser) to
check that the id is there in the href.
Add code to show the id on the page and check that it also appears in the href.
Colin
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment