Routing error for stylesheets in rails 3.0

27 views
Skip to first unread message

Shalini Sah

unread,
Jul 4, 2012, 9:12:53 AM7/4/12
to rubyonra...@googlegroups.com
Hi,

I added a css file in public/stylesheets folder (I use Rails 3.0 so no asset pipeline) and included it in my views by

"<%= stylesheet_link_tag 'ss', :media => :all %>"

But I get a routing error on loading my page in my logs.

"ActionController::RoutingError (No route matches "/stylesheets/ss.css"

Please tell me what are the required settings I maybe missing.

Colin Law

unread,
Jul 4, 2012, 9:21:11 AM7/4/12
to rubyonra...@googlegroups.com
On 4 July 2012 14:12, Shalini Sah <shalini...@gmail.com> wrote:
> Hi,
>
> I added a css file in public/stylesheets folder (I use Rails 3.0 so no asset
> pipeline) and included it in my views by

And the name of that file is?

Colin

>
> "<%= stylesheet_link_tag 'ss', :media => :all %>"
>
> But I get a routing error on loading my page in my logs.
>
> "ActionController::RoutingError (No route matches "/stylesheets/ss.css"
>
> Please tell me what are the required settings I maybe missing.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/E6Ixg7LnkaoJ.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Shalini Sah

unread,
Jul 4, 2012, 9:24:22 AM7/4/12
to rubyonra...@googlegroups.com
ss.css

CavalryJim

unread,
Jul 5, 2012, 9:07:07 AM7/5/12
to rubyonra...@googlegroups.com
Do you have a ss.css file in your public/stylesheets folder? If not, that is the problem.

Shalini Sah

unread,
Jul 5, 2012, 2:00:10 PM7/5/12
to rubyonra...@googlegroups.com
Hi,

It was some mistake on my part. I have resolved it.

Thanks & Regards.

On Thu, Jul 5, 2012 at 6:37 PM, CavalryJim <james.d...@gmail.com> wrote:
Do you have a ss.css file in your public/stylesheets folder?  If not, that is the problem.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/y8NX41ck1P4J.
Reply all
Reply to author
Forward
0 new messages