Ruby on Rails
Thursday, February 8, 2018
I've been trying to create it, and nothing seems to work. So my question is, how do you create it. I've never worked with Ruby On Rails
On Thursday, February 8, 2018 at 1:12:23 PM UTC-8, Hassan Schroeder wrote:
-- On Thursday, February 8, 2018 at 1:12:23 PM UTC-8, Hassan Schroeder wrote:
On Thu, Feb 8, 2018 at 12:48 PM, Dane Terrell <dane...@gmail.com> wrote:
> When I input localhost:3000 here is what I get
>
> NameError in CatalogController#index
>
> undefined local variable or method `search_state' for
> #<CatalogController:0x4182c1c>
OK, so that's a totally different thing. Your request is being sent to
the right controller, but "search_state" isn't set, so... you'll have to
figure out where that's intended to come from.
> find_or_initialize_search_session_from_params search_state.to_h
The "_from_params" is probably a clue there...
> When I enter localhost:3000/catalog here what I still get
> No route matches [GET] "/catalog"
Of course -- why are you even trying that when `rake routes` has
shown the route doesn't exist? If you want it to exist, you have to
create it, but it doesn't seem to be a part of this search thing.
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
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/8f2b979c-5a08-4df1-9a92-821984dc7736%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment