I have a text_area form to create a quick Idea object. This form appears on many parts of the site so I move it as a shared/_idea_form.html.haml file.
I’m currently defining the new object in every controller action where the form is present with @ideas = Idea.new to make it work.
Is there a more convenient/global way define the @ideas = Idea.new outside each action? I.e. as a before_filter in the application controller. I’m not sure if that would be the right approach to this.
you can put it directly in view