Ruby on Rails Saturday, February 21, 2015

On Sat, Feb 21, 2015 at 6:01 AM, Noah Altun <lists@ruby-forum.com> wrote:

> I am making an app with an existing parser, that parses a .txt and
> extrapolates words and displays each on the index page.
> I am very new to Rails, but my hands are certainly dirty. I am not sure,
> however, how I could connect each word to an option in the dropdown
> list, or having a searchbar that redirects to each word searched for.

Have you read the doc for ActionView::Helpers::FormOptionsHelper#select?

Implementing a form to submit a search term is pretty basic stuff;
have you gone through any Rails tutorials?

> I want to have this using AJAX so that everything just gets taken care
> of on the index page. Likewise, I am new to AJAX.

I don't see what AJAX has to do with this but If you're new to Rails
and having trouble with a simple dropdown, I'd recommend getting
that working first :-)

Good luck.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
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/CACmC4yCeWyZunFqQD%3DyZ%3D%2Bm-G1qRRpMbUL2WjFZ1o3tzw9HEqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment