I''ve installed bootstrap-sass, and added an @import line in my css. Rails won''t find or serve up the bootstrap files. One error msg on the Mozilla console says: The stylesheet http://localhost:3000/assets/bootstrap was not loaded because its MIME type, "application/javascript", is not "text/css". Hmm. If I change the @import to say "bootstrap.css", bootstrap seems to load, but things like carousel are undefined: TypeError: jQuery(...).carousel is not a function It seems like something is fundamentally broken with the bootstrap install, but I have no idea what. Where are the bootstrap files supposed to be loaded? On my system they''re squirreled away inside rvm somewhere. Correct? Is there a variable inside rails that describes the directories rails searches for assets? Any ideas? Per -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/TwCiHSfNZgEJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Hi Per, This is a question better suited for the rubyonrails-talk mailing list. This list is reserved for discussions about the core of Rails, whereas rubyonrails-talk is for application support Q&A. Thank you! On 23/01/2013, at 16:07, xscribe@gmail.com wrote:> I''ve installed bootstrap-sass, and added an @import line in my css. Rails won''t find or serve up the bootstrap files. One error msg on the Mozilla console says: > > The stylesheet http://localhost:3000/assets/bootstrap was not loaded because its MIME type, "application/javascript", is not "text/css". > > Hmm. If I change the @import to say "bootstrap.css", bootstrap seems to load, but things like carousel are undefined: > > TypeError: jQuery(...).carousel is not a function > > It seems like something is fundamentally broken with the bootstrap install, but I have no idea what. > > Where are the bootstrap files supposed to be loaded? On my system they''re squirreled away inside rvm somewhere. Correct? > Is there a variable inside rails that describes the directories rails searches for assets? > > Any ideas? > > Per > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/TwCiHSfNZgEJ. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Please direct questions about Rails to Rails Talk: https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk (i see you already have) or to StackOverflow. This list is for the programmers who work on the framework itself. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Tuesday, January 22, 2013 at 11:07 PM, xscribe@gmail.com wrote:> I''ve installed bootstrap-sass, and added an @import line in my css. Rails won''t find or serve up the bootstrap files. One error msg on the Mozilla console says: > > The stylesheet http://localhost:3000/assets/bootstrap was not loaded because its MIME type, "application/javascript", is not "text/css". > > Hmm. If I change the @import to say "bootstrap.css", bootstrap seems to load, but things like carousel are undefined: > > TypeError: jQuery(...).carousel is not a function > > It seems like something is fundamentally broken with the bootstrap install, but I have no idea what. > > Where are the bootstrap files supposed to be loaded? On my system they''re squirreled away inside rvm somewhere. Correct? > Is there a variable inside rails that describes the directories rails searches for assets? > > Any ideas? > > Per > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/TwCiHSfNZgEJ. > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.