I what to try this method in a helper class:
def moderator_buttons?
return true if params[:question_status] == 'HOST_INBOX'
return true if params[:question_status] == 'HOST_INBOX_READ'
return true if params[:question_status] == 'DELETED'
return true if params[:question_status] == 'LATER'
return true if params[:question_status] == 'MODERATOR_TO_APPROVE'
false
end
How can I assign 'HOST_INBOX' string to params[:question_status]
before
assert true, moderator_buttons?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.