Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

letsrate -- the stars are not displayed :( #16

Open
wazery opened this issue Jul 30, 2014 · 4 comments
Open

letsrate -- the stars are not displayed :( #16

wazery opened this issue Jul 30, 2014 · 4 comments

Comments

@wazery
Copy link
Owner

wazery commented Jul 30, 2014

Issue by zhall
Saturday Jul 06, 2013 at 20:18 GMT
Originally opened as muratguzel#35


I am using rails 3.2.8 gem, ruby 1.9.3 and want to add star rating to my project. I am using the letsrate gem. The stars are not displayed. I know this is something to do either with .js or the .css files. There is no .css file though for this gem. The jquery.raty.js and letsrate.js.erb files are in app/assets/javascripts directory.The star images are in app/assets/images directory.In my /show.html.erb file I wrote:

     <% content_for :javascript_includes do %>
     <%= javascript_include_tag 'jquery.raty.js','letsrate.js.'%>
     <% end %>    
    <dd>Quality : <%= rating_for @book, "quality",:star => 5 %><br/>
   Value For Money : <%= rating_for @book, "value_for_money",:star => 5  %><br/>
   Price : <%= rating_for @book, "price", :star => 5 %></dd><br/>
Im my views/layout/application.html.erb file I wrote:
<html>
<head>
    <title><%=@page_title || '*** T&T ***'%></title>
    <%= javascript_include_tag 'application'%>
   <%= yield :javascript_includes %>            
   <%= stylesheet_link_tag 'style','application', media: "all"%>
    <%= csrf_meta_tags %>
When application runs, the stars are not displayed. Do I need to write .css file? I am really, really in dire need of your help!!! Thank you.
@wazery
Copy link
Owner Author

wazery commented Jul 30, 2014

Comment by zhall
Saturday Jul 20, 2013 at 08:25 GMT


No help is required, I figured that out :)

@wazery
Copy link
Owner Author

wazery commented Jul 30, 2014

Comment by gugl
Friday Sep 20, 2013 at 19:00 GMT


can you share the solution with us?

@wazery
Copy link
Owner Author

wazery commented Jul 30, 2014

Comment by yozzz
Friday Oct 04, 2013 at 13:30 GMT


Have the same problem...

@wazery
Copy link
Owner Author

wazery commented Jul 30, 2014

Comment by yozzz
Friday Oct 04, 2013 at 14:03 GMT


In view file:
<% content_for :javascript_includes do %>
<%= javascript_include_tag 'jquery.raty.js','letsrate.js.'%>
<% end %
In application view:
<%= yield :javascript_includes %>

This is helps me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant