Skip to content

Instantly share code, notes, and snippets.

@rails3book
Created March 10, 2011 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rails3book/863365 to your computer and use it in GitHub Desktop.
Save rails3book/863365 to your computer and use it in GitHub Desktop.
<%
# terribad hack for Rails 3.0 crap
url = if @topic.new_record?
forem_forum_topics_url(@forum)
else
forem_forum_topic_url(@forum, @topic)
end
%>
<%= simple_form_for [@forum, @topic], :url => url do |f| %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment