Displaying 2 results from an estimated 2 matches for "show_quest".
Did you mean:
show_queue
2008 Apr 07
0
link_to only links to current controller?
...rhtml pages, the controller or
any of the routing code. Right now I literally have no idea what the
cause of this could be.
This code lists FAQ entries (in faq_controller.rb ):
<ul>
<% @questionList.each do |question| %>
<li><%=link_to(question.question, :action=>''show_question'',
:id=>question.id)%></li>
<% end %>
</ul>
On the current code it gives this output:
<li><a href="/faq/show_question/1">What is question 1?</a></li>
When I switch to the new codebase I get this:
<li><a href="/f...
2010 Feb 02
0
Help needed in Routes
Hi All
I am now using Rails 2.3.4
i would want to have a route like
http://localhost:3000/mysite/questions/show.xml/question-title
In Rails 2.1.2, i had used the format
map.namespace :mysite do |mysite|
mysite.show_question ''/questions/show.:format/:title'', :controller
=> ''mysite_questions'', :action => ''show''
end
But now the same route shows up an error in Rails 2.3.4.I am not able to
start the application even.
Kindly tell me what should be followed so...