Displaying 1 result from an estimated 1 matches for "vote_poll_path".
2008 Nov 19
0
Helpers in lib
Hi all,
I have a query about how to access helper methods in a library. I''m
trying to create a custom liquid drop thing which has a form in it (a
poll), and I''m unable to get form_for to work with "vote_poll_path".
Here''s my code for the custom drop (this is in a file in lib):
def render(context)
@vote = Vote.new(:poll_id => @poll.id)
output = "<div class=''poll''><a href=''/polls/#{@poll.id}''>#
{@poll.question}</a>"
output...