hi all,
i want to put the html coding in my controller, because i want to
return the value like this. but i don''t how to declare here. i
declared,
but it show error. i have listed my coding here. plese tell me what''s
the error in this asap.
@return_string+="<tr bgcolor=white>
<td>" + company.street_addr +
"</td>
<td>" +company.city +
"</td>
<td>" +company.state +
"</td>
<td>" + company.pin +
"</td>
<td width=10>" + company.branch +
"</td>
<td width=10%>" +
link_to_remote ''EDIT'',
:update => ''detail'',
:with =>"''company_id=''+#{company.id}",
:url => { :action => ''edit_comp'' }
+ "</td></tr>"
my Error is:
app/controllers/oddworlders_controller.rb:197: syntax error, unexpected
tSTRING_BEG, expecting kDO or ''{'' or ''(''
link_to_remote "EDIT",
^
app/controllers/oddworlders_controller.rb:197: syntax error, unexpected
'','', expecting kEND
app/controllers/oddworlders_controller.rb:198: syntax error, unexpected
'','', expecting kEND
app/controllers/oddworlders_controller.rb:199: syntax error, unexpected
'','', expecting kEND
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---