RoR
RoR

Reputation: 16472

Rails3 Partial Question

I have an issue with routes when i use this partial

partial search

<% form_tag search_path %>
    textfield
    submitbutton
<% end %>

Then inside of my main index, i call the

render 'partial'

then when i try to use the text field i get a routing problem but in my routes i have

match 'search' => 'dashboard#search'

... Any help appreciated.

Upvotes: 0

Views: 344

Answers (1)

Casual Coder
Casual Coder

Reputation: 1492

Try:

<% form_tag '/search' %>

Upvotes: 1

Related Questions