How To Build A Movie Review App in Rails 4
Why Stack Overflow recommends it
Stack Overflow users link it as the tutorial they are following when they hit problems with star ratings, Searchkick setup and asset loading in the app.
Recommended by 1 people across 1 different months, 2015 to 2017.
What it is
A 1h28m screencast by Mackenzie Child, week 5 of his 12 Web Apps in 12 Weeks series, building a movie rating and review app in Rails 4. It covers star ratings, search with Searchkick, user accounts with Devise, image uploads with Paperclip and Bootstrap-Sass styling.
What people said
Recommends iiRosie1 · 2017-12 · Stack Overflow · on “Raty star rating not showing up”
So I'm following a tutorial [this video] and near 1:07:39 in the New Review page, he has rating field and a comment field. But for me, only the comment page shows up, and I've tried copying his movie controller, reviews controller and the _form.html.erb. I am using ruby on rails and using the cloud 9 editor. All help is appreciated. If there's anything I have to add please comment. This is my form: <%= form_for([@movie, @review]) do |f| %> <% if @review.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@review.errors.count, "error") %> prohibited this review from being saved:</h2> <ul> <% @review.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div>
Recommends iiRosie1 · 2017-12 · Stack Overflow · on “Ratings with Raty not showing up”
So I am following a tutorial [this video] and using cloud 9 as my editor. When I run my program and submit a review. Mackenzie's (the person that made the tutorial) review form lets the viewer select stars as their rating. On the other hand, mine only allows the user to put in a number, and the average rating doesn't change. Here is my _form.html.erb <%= form_for([@movie, @review]) do |f| %> <% if @review.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@review.errors.count, "error") %> prohibited this review from being saved:</h2> <ul> <% @review.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :rating
Cites vickris · 2015-07 · Stack Overflow · on “How to install the searchkick gem when using cloud9 online IDE”
I am following a tutorial [this video] where we want to add a search functionality to the app. But when I run rake searchkick:reindex CLASS=Movie in the terminal I get rake aborted! Faraday::ConnectionFailed: Connection refused - connect(2) for "localhost" port 9200 /usr/local/rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:80:in `perform_request' /usr/local/rvm/gems/ruby-2.2.1/gems/faraday- Tasks: TOP => searchkick:reindex (See full trace by running task with --trace) Is there any other way to get around this when using an online IDE? I think this only happens to those who use online editors.
Cites Railroad Tycoon · 2017-08 · Stack Overflow · on “Rails Javascript, images not being linked or loaded correctly”
I am following the [this video] tutorial, however my star images when writing reviews fail to show up. In the Jquery file: $.fn.raty.defaults = { ... starHalf : 'star-half.png', starOff : 'star-off.png', starOn : 'star-on.png', ... }; On the chrome console ... <img alt="5" src="/assets/star-off.png" title="gorgeous"> 404 error The jquery script appears to be loaded, but the images are not visible. I saved images in the /assets/images folder, and I have also added them to the /assets folder just in case Other images I have loaded are from a "/dev-assets" folder when checked with the chrome's inspect Edit, There are many other images my app loads correctly, all the images are in the /assets/images