daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <span id="add_link"><%= link_to_function "Add a Review", "Element.show('add_review');Element.hide('add_link');" %></span>
  2. <div id="add_review" style="display:none">
  3. <br><h3>Add a review</h3>
  4. <% form_remote_tag(:update => 'add_review',
  5.                    :url => {:controller => 'review', :action => 'create', :id => @item}, :method=>:put) do |f| %>
  6.   <%= f.text_area :review_text, :rows => 3 %><br>
  7.   <%= submit_tag 'Add review!'%>
  8. <% end %>
  9. </div>
  10.  
  11.  
  12.  
  13.  
  14.  
  15. You have a nil object when you didn't expect it!
  16. The error occurred while evaluating nil.text_area
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top