Thank you very much for your help.
Sorry, I should have included what's inside the block: it's a glyphicon 
block sign. 
I've researched the correct format for including a block (example here 
<http://stackoverflow.com/questions/14986559/rails-undefined-method-stringify-keys>),
 
and I think I have it correct below (it works when I use a string such as 
'baz'). But when I use blockedcallsign, it still gives the error undefined 
local variable or method `blockedcallsign'.
The full code is below:

<%= button_to blockrelationships_path(
                params: { 
                  blocker_callsign: @character.callsign, 
                  blocked_callsign: blockedcallsign, #'baz'
                  viewed_callsign:  @view_character.callsign
                },
                remote: true
              ),
              class: 'btn btn-default btn-xs' do %>
  <span class="glyphicon glyphicon-ban-circle" aria-hidden="true"></span>
<% end %>

I am completely at a loss. Is it perhaps something to do with calling a 
partial inside a partial?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b2801059-2390-48d8-94ce-764785d43276%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to