On 28 February 2010 13:40, Manish Belsare <[email protected]> wrote:
> Sir even i want to know where does the id in the link :
> http://0.0.0.0:3000/answers/new?idd=9
> is available..
>
> Can i get this id in any variable whem i reach that page(action) so that
> i can access it and compare in a loop as i hav already got an array of
> id's in instance variable..
> So on comparing this id with id's in the loop i can get the result...ie.
> @post

The idd value will be available in answers#new as params[:idd].

I suggest that you have a look at the rails guides at
http://guides.rubyonrails.org/
Start with Getting Started, work through it making sure that you fully
understand. Then move on to the other guides.  Particularly
ActiveRecord Associations and also Debugging.  Then you should be able
to answer basic questions yourself.

Good luck.

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 [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