yes, it will work

On Jan 10, 1:34 am, JD <jdg....@gmail.com> wrote:
> On Jan 9, 6:14 pm, Frederick Cheung <frederick.che...@gmail.com>
> wrote:
>
> > On Jan 9, 1:10 pm, JD <jdg....@gmail.com> wrote:
>
> > > Hello all,
>
> > > I'm relatively new to rails and have been doing ok with it but I have
> > > run into an issue that I'm sure has a really easy solution that I just
> > > can't seem to see.
>
> > Do you want admin_carriers_path? You can probably simplify things
> > simply by saying form_for([:admin, @carrier], :html => {:multipart =>
> > true}}
>
> > Fred
>
> Thanks for that Fred!  That's not what I did but it seems a better
> approach.  I ended up doing :url => { :action => "create" }.
>
> One further question would [:admin, @carrier] work in link_to for my
> destroy links?  Currently i'm using admin_carrier_path(carrier).
>
> Thanks!

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to