Hi Pete,

That's perfectly possible.


in your user show view

def show
 @entry = Entry.new
end

in your user show view

// when using form_for @entry rails will know that your form is
intended for the entries controller and will point you there
automatically.
form_for @entry do |f|
// form elements here
end

Don't forget to redirect to the user show view in your entries create
action.

I hope this helps.
Stijn

On 25 nov, 17:47, Petan Cert <[EMAIL PROTECTED]> wrote:
> All right, thanks. I have got a users and entries controller. Users
> homepage iswww.mydomain.com/profile/:username(:controller => 'users',
> :action => 'show'). Users can add a new posts in (:controller =>
> 'entries', :action => 'new') and I would like to allow users to add and
> see their posts at profile page, which is in users controller. Is there
> way out of this? Hope, yes. Thank you.
> Pete
>
> Tarscherwrote:
> > Do you mean call a controller via :partial => ? No, that's not
> > possible.
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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