Pale Horse wrote:
> Sharkie Landshark wrote:
>>
>> For example, I want <a href='link'> rather than <a href="link">
>>
>> I want to maintain consistency with style.
>>
>> Can this be done?
>>
>> Also, I am trying to use Rails 3.0.
>>
>> Sharkie
>
> I would not recommend using single quotations over double. One argument
> against using single quotes is that you will not be able to embed ruby
> code into your link:
>
> "<br />A link to a #{link_to("website", "http://ruby-forum.com")}"
>
That's not true. The OP seems to be talking about the quotation marks
in the generate HTML, not in the Ruby source code.
> If you want consistency, consistently use double quotations.
Better yet, don't worry about it.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
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 [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.