Skip to content

Commit

Permalink
sliders add in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hmtanbir committed Mar 1, 2016
1 parent ee13917 commit b6b536d
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 132 deletions.
263 changes: 135 additions & 128 deletions .idea/workspace.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/assets/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2786,6 +2786,7 @@ a.mean-expand {
}
.footer-boxed .footer-inner {
background-image: url("footer-bg-full.jpg");

}
.footer-fluid {
background-image: url("temp-images/footer-bg-full.jpg");
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="text-center">
<a class="logo-footer wow animated zoomIn" href="<%= root_path %>">

<%= image_tag 'logo1.png' %>
<%= image_tag 'logo2.png' %>

</a>

Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<li><a href="<%= recipes_url %>">Recipes</a></li>

<% if user_signed_in? %>
<li><a href="<%= sliders_url %>">Sliders</a></li>
<li class="submit-recipe"><a href="<%= new_recipe_url %>">Submit Recipe</a></li>
<% end %>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@


<!--footer-->

<%= render 'layouts/footer' %>
<!--footer ends-->

<!-- javascript -->
Expand Down
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.compile = true

# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
config.assets.digest = true

# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

config.serve_static_files = true
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
Expand Down
11 changes: 11 additions & 0 deletions problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,14 @@ iii) Now open again home/index.html.erb file and write this code for showing sea
</div>
</div>
<% end %>

9.Background image not showing up in heroku,why?
solution:
In your production.rb add the following line

config.serve_static_files = true
config.assets.compile = true

or you can try to precompile the assets locally using

RAILS_ENV=production rake assets:precompile

0 comments on commit b6b536d

Please sign in to comment.