Ruby on Rails Wednesday, April 1, 2015

On 31 March 2015 at 22:16, Jhonnatan Mc <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1171241:
>> On 31 March 2015 at 21:32, Jhonnatan Mc <lists@ruby-forum.com> wrote:
>>>>
>>>> Look at the name of the class (UserService). Now look at the name of
>>>> the file. Now look again if necessary. Keep looking...
>>>>
>>>> Colin
>>>
>>> I tried changed the name of el file from UserService to user_service.
>>> the class name is UserService.
>>
>> Correct the code in your repo then copy/paste here the error you get
>> with the correct name.

The code is still wrong in the repo. As I said, correct the code in
the repo, make sure that is the code you are running, and try again.
It is difficult to help if you do not do what is asked.

Colin

> NameError in UsersController#create
> uninitialized constant UsersController::UserService
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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/b8c48b7f0eadba1f036b367cce32aff6%40ruby-forum.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/CAL%3D0gLtRxtYj8x3iMB4p82W9zEScPTRn79aNivLHr4z6XtZbqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment