[Rails] Re: Re: Re: Re: Re: Re: Re: Display by alphabetical letter.
Colin Law wrote in post #1047891:
> On 20 February 2012 21:43, Christopher Jones <lists@ruby-forum.com>
> wrote:
>>
>> Any ideas of what my problem might be?
>
> Have a look at the Rails Guide on Debugging for various debugging
> techniques to help you work out why the code is not working.
>
> Colin
Ok Colin,
From what I have understood it isn't actually connecting with the
controller method, simply passing the params in the view text.
This is what I have in my log:
Started GET "/games?char=F&update=content&url%5Baction%5D=live_search"
for 127.0.0.1 at 2012-02-20 22:14:02 +0000
Creating scope :page. Overwriting existing method Game.page.
Processing by GamesController#index as HTML
Parameters: {"char"=>"F", "update"=>"content",
"url"=>{"action"=>"live_search"}}
[1m[36mGame Load (1.0ms)[0m [1mSELECT `games`.* FROM `games` LIMIT 4
OFFSET 0[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `games`
Rendered games/index.html.erb within layouts/application (78.0ms)
Creating scope :page. Overwriting existing method User.page.
[1m[36mUser Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE
`users`.`id` = ? LIMIT 1[0m [["id", 9]]
Completed 200 OK in 392ms (Views: 360.0ms | ActiveRecord: 31.0ms |
Sphinx: 0.0ms)
As you can see it has the parameters and then just moves on but I am not
sure why.
Thanks
Chris Jones.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home