Ruby on Rails Tuesday, February 18, 2014

Ganesh Ranganathan wrote in post #1137095:
> On Wed, Feb 19, 2014 at 12:51 AM, Farsheed Bamboat
> <lists@ruby-forum.com>wrote:
>
>> Thanks Ganesh. I just tried that right now but the issue still persists.
>
>
> Can you share the _form.html.erb code for head section
>
> Does it not work on development or Production, or both?

It doesn't work in dev. I don't have a prod environment yet.

Here are the two options I have tried for the header code:

Option 1:
<% content_for :head do %>
<link rel="stylesheet" type="text/css"
href="/stylesheets/ammos_new.css">
<% end %>

Option 2 (this was based on your suggestion):
<% content_for :head do %>
<%= stylesheet_link_tag '/stylesheets/ammos_new.css' %>
<% end %>

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/3c6d114fbdaa01f6f2d680cc60ee57f7%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment