Ruby on Rails Tuesday, September 12, 2017

+1

post output from '$ rails routes', it will really help people  help you.

also 'NoMethodError in Gallery#new sounds like the new method is missing from the Gallery controller so posting that would also be good.

Ben

On Tuesday, September 12, 2017 at 3:23:21 PM UTC+1, Colin Law wrote:
On 12 September 2017 at 15:15, Joe Guerra <JGu...@jginfosys.com> wrote:
> RIght, I tried resources galleries, resources gallerys
>
> But all come up with other errors.  My post controller and views work, this
> gallery controller seems to look the same?  (I don't get it).

rails routes
will show you all configured routes, which may help

Colin

>
> Thanks,
> Joe
>
> On Tuesday, September 12, 2017 at 3:45:29 AM UTC-4, Norbert Melzer wrote:
>>
>> Am 12.09.2017 um 03:15 schrieb Joe Guerra:
>> > get resources :gallery
>> You do have this in your routesfile literally? Seems invalid for me.
>>
>> Also As far as I can remember the convention, `resources` needs the
>> plural name, not the singular name. But I haven't used rails since about
>> 3.x-ish.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/7846a77e-4bb0-42d0-aab8-f087843a30b2%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/90a4bc9f-950c-4ac0-8234-17cb58da2371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment