[Rails] Re: Re: Re: Re: Re: Display by alphabetical letter.
Javier Quarite wrote in post #1047871:
> On Mon, Feb 20, 2012 at 2:09 PM, Christopher Jones
> <lists@ruby-forum.com>wrote:
>
>> <% end %>
>> else
>> Chris Jones
>>
>>
> I haven't read the entire thread (just some parts)
>
> Maybe this is to basic, but it helped me
> http://railscasts.com/episodes/111-advanced-search-form
>
> and maybe this to (because as far as I understand you're trying to get
> some
> pagination... or maybe I'm wrong
>
> http://railscasts.com/episodes/240-search-sort-paginate-with-ajax
>
> The approach on the first one will help you with this
>
> @game = Game.find(:all,:conditions => ["lower(game_name) like ?","%"
> +
> params[:search].downcase+ "%"])
>
>
>
> Javier Q.
Hey Javier,
I completed those two episodes. The first one I already use in the side
bar for searching specific games and I have fully implemented the second
episode (240) in order to include the column ordering and pagination.
But am still troubled in actually displaying those games that start with
the correct character.
--
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