ruby on rails - How to not require application.css.scss twice? -
just got done basic styling app. using twitter bootstrap.... app deployed heroku , working bootstrap styling updates getting error:
actionview::template::error (/app/app/assets/stylesheets/application.css has been required):
anyone have ideas be. have been fussing around couple hours now. have tried bunch of stuff. of mentioned here:
why actionview::template::error when trying upload app heroku?
2013-07-17t15:12:26.494137+00:00 app[web.1]: started "/" 71.203.124.202 @ 2013-07-17 15:12:26 +0000 2013-07-17t15:12:27.403656+00:00 app[web.1]: 4: %title 2013-07-17t15:12:27.403656+00:00 app[web.1]: 2013-07-17t15:12:27.403656+00:00 app[web.1]: actionview::template::error (/app/app/assets/stylesheets/application.css has been required): 2013-07-17t15:12:27.403656+00:00 app[web.1]: 3: %head 2013-07-17t15:12:27.403656+00:00 app[web.1]: 5: current lines , analysis 2013-07-17t15:12:27.403656+00:00 app[web.1]: 6: = stylesheet_link_tag "application", :media => "all" 2013-07-17t15:12:27.403656+00:00 app[web.1]: 7: = javascript_include_tag "application" 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/navigation/_main_nav.html.haml (1.4ms) 2013-07-17t15:12:27.403656+00:00 app[web.1]: app/views/layouts/posts.html.haml:6:in `_app_views_layouts_posts_html_haml___3387163029388442478_46287060' 2013-07-17t15:12:27.403656+00:00 app[web.1]: 8: = csrf_meta_tags 2013-07-17t15:12:27.403656+00:00 app[web.1]: 9: :javascript 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_events_sort_toggle.html.haml (1.0ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_main_flash.html.haml (0.1ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_header.html.haml (4.5ms) 2013-07-17t15:12:27.403892+00:00 app[web.1]: 2013-07-17t15:12:27.403892+00:00 app[web.1]: 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_events_sidebar.html.haml (22.6ms) 2013-07-17t15:12:27.404248+00:00 app[web.1]: completed 500 internal server error in 904ms 2013-07-17t15:12:27.404086+00:00 app[web.1]: processing postscontroller#index html 2013-07-17t15:12:27.404248+00:00 app[web.1]: rendered posts/index.html.haml within layouts/posts (40.5ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_posts_sort_toggle.html.haml (1.5ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_posts_multi.html.haml (2.2ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_hot-events-box.html.haml (2.0ms) 2013-07-17t15:12:27.404086+00:00 app[web.1]: rendered shared/_leagues_toggle.html.haml (2.6ms) 2013-07-17t15:12:27.404248+00:00 app[web.1]: rendered shared/_top_users_sidebar.html.haml (1.7ms) 2013-07-17t15:12:27.404215+00:00 heroku[router]: at=info method=get path=/ host=www.webxxxxx.com fwd="xx.203.124.xxx" dyno=web.1 connect=1ms service=918ms status=500 bytes=643
application.css.scss file
/* * manifest file that'll compiled application.css, include files * listed below. * * css , scss file within directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can referenced here using relative path. * * you're free add application-wide styles file , they'll appear @ top of * compiled file, it's better create new file per style scope. * *= require_self *= require bootstrap *= require_tree . */ @import "bootstrap";
when take these 2 lines out of posts layout site renders without style...
= stylesheet_link_tag "application", :media => "all" = javascript_include_tag "application"
any ideas?
check see if have application.css
file in app/assets/stylesheets
directory. default rails
places content of have in application.css.scss
in application.css
. might have created file , missed remove default application.css
.
Comments
Post a Comment