You should add parenthesis to get it right with your notation, just like this.
Up vote 0 down vote favorite share g+ share fb share tw.
Board', :action => 'take_turn', :id => @board. Id, :x => col, :y => row }, :remote => true do %> generates: Why is it not working right? It should generate herf="board/take_turn?
Id=15&x=1&y=1" ruby-on-rails ruby-on-rails-3 link|improve this question edited Jan 30 '11 at 22:48Nakilon5,466928 asked Jan 30 '11 at 22:07TheLindyHop3,138538 90% accept rate.
You should add parenthesis to get it right with your notation, just like this: 'board', :action => 'take_turn', :id => @board. Id, :x => col, :y => row }, :remote => true) do %> otherwise the interpreter can't understand which are the correct arguments. Hope this helps.
This is because you're using the block version of link_to. The first parameter in this case should be the URL, not a blank string.
I get syntax error, unexpected tASSOC, expecting '} when I get rid of the empty string. =\ – TheLindyHop Jan 30 '11 at 22:10 1 Wrap the arguments of the link_to in parenthesis too. – Ryan Bigg Jan 30 '11 at 22:12 To elaborate, if you have link_to {...} do ..., Ruby can't figure out if you are using hash syntax or block syntax (and assumes it's a block).
Link_to({...}) do ... helps it figure out that you are meaning to pass a hash. – Chris Heald Jan 30 '11 at 22:17.
Col, :y => row) , :remote => true do %> # Your code and stuff here I think should work (You need to make sure that board_take_turn_path is actually defined.
I need it to be the block version of link_to because I have a div that is an entire link – TheLindyHop Jan 30 '11 at 22:11 webdestroya is giving you the block version. Just put whatever you want to go in the block after his code, append an , and you'll be good to go! – Steven Xu Jan 30 '11 at 22:22 I just updated my answer to be more clear.
– Mitch Dempsey Jan 30 '11 at 22:37.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.