Searching for words in Ruby on Rails -


Text after "

My application currently lists words that have been parsed in a database (SQLite). I want to add a search box for my Rail app that looks through its dictionary of words and returns the search for the words in the table format that is currently presented in my opinion:

  & lt;% @ words Do it Words | & Gt%; & Lt; TR & gt; & Lt; Td> & Lt;% = word.word% & gt; & Lt; / Td> & Lt; Td> & Lt;% = word.wordtype% & gt; & Lt; / Td> & Lt; Td> & Lt;% = word.description% & gt; & Lt; / Td> & Lt; Td> & Lt;% = link_to 'Show', word% & gt; & Lt; / Td> & Lt; / TR & gt; & Lt;% end% & gt;  

I am new to the rail and deep red has appreciated any help.

<:

You want a simple search (that misspellings are not allowed But allows partial spelling) You can do something like this in your action (assuming that the name of the name you want to be / whatever it needs to be) is to be assumed> def # search Also, the model is actually called end-word model, with words like @words = Word.where ('' %%? '', Parameter [: query])

Note that this action should be used with the GET method. After this, we do not need to use powerful parameters.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -