You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: