Questions tagged [railscasts]

Short Ruby on Rails screencasts containing tips, tricks and tutorials.

Every week Ryan Bates will host a new Railscasts episode featuring tips and tricks with Ruby on Rails. These screencasts are short and focus on one technique so you can quickly move on to applying it to your own project. The topics target the intermediate Rails developer, but beginners and experts will get something out of it as well.

http://railscasts.com/

275 questions
0
votes
1 answer

Rendering Errors Without Changing Link - Ryan Bates - RAILS

For those of you who actually have, or actually are watching RailsCasts, and for those of you who have actually watched these two…
0
votes
1 answer

Rails 4 Live Streaming

I am following this railscast that it explains how to implement a chat application. I have followed everything step by step, and it seems to be working until the point I started using redis for the publish/subscribe version of it to make it faster,…
Trt Trt
  • 5,330
  • 13
  • 53
  • 86
0
votes
1 answer

#258 Token Fields (revised) - how it create new authors?

I am trying to follow the episode #258 Token Fields (revised). I don't know how the code create authors, I have a feeling that is related to the code below, but I am not sure. Please can you explain how the code create authors? in…
dinnouti
  • 1,707
  • 2
  • 15
  • 21
0
votes
1 answer

Why is my object.children undefined?

I'm running javascript on Ruby on Rails to insert a form dynamically into a page when the user clicks on a link. It's not working, but one particular bug gets my goat: that my form return form.children UNDEFINED in the debugging console. Here is the…
Laurent
  • 1,554
  • 19
  • 42
0
votes
1 answer

Save an integer with time_zone_select

I am following the railscast on time zones found here- http://railscasts.com/episodes/106-time-zones-revised The following is what I am using for the time zone select input. Currently the form saves a string value in the database (ie. "Alaska"). …
Eric
  • 429
  • 2
  • 6
  • 15
0
votes
1 answer

Backbone and Rails 3 Uncaught TypeError: Cannot call method 'on' of undefined

I am developing an application and I am following this rails cast: http://railscasts.com/episodes/323-backbone-on-rails-part-1 Everything seems correct except that I keep receiving an error when I run my js console at localhost:3000 I get the…
0
votes
1 answer

Multibutton Rails Forms work for New but not for Edit

Following the helpful tutorial in Railscasts #38 http://railscasts.com/episodes/38-multibutton-form I set up a "Preview" button for my "New"/"Create" controller actions. But when I use the same method for "Edit"/"Update" there seems to be a…
isthmuses
  • 1,316
  • 1
  • 17
  • 27
0
votes
1 answer

Nginx redirecting to IP

I recently used the Deploying to VPS Railscasts by Ryan Bates for one of my projects. Everything worked like a charm however there is one small issue which is bugging me regarding the nginx configuration. For some reason whenever I enter the staging…
Smoke
  • 1,052
  • 1
  • 10
  • 24
0
votes
1 answer

Backbone.js and Rails 3.2

I just watched the backbone.js railscasts and Im not getting the error alert when the name is not present but do get an error on the server side. im using rails 3.2.8 and backbone-on-rails 0.9.2.3 In the network console it does state that theres an…
maumercado
  • 1,453
  • 4
  • 23
  • 47
0
votes
1 answer

rails mailer generating invalid URL

I am trying to add password reset functionality to my rails app using action mailer. Everything seems to be working fine except that the generated link to reset the password is incorrect. Here are the files: File user_mailer.rb: class UserMailer <…
Kiran
  • 5,478
  • 13
  • 56
  • 84
0
votes
1 answer

Excel and Ruby compatibility

I followed this Railscasts link for CSV export from Railsto export my html table (dynamically generated) to xls and it downloads my excel document when I do .xls However, when I open it in iWork Numbers, I get the following error: Import Warning -…
anipendakur
  • 85
  • 10
0
votes
2 answers

Class Method In Model To Get Data On A Given Date

I'm building a call tracking application, as a way to learn Rails and Twilio. Right now, I am trying to follow Ryan Bates' tutorial to create a graph that shows users the number of phone calls they have per day. The model works like so -- > Phone…
Stepan Parunashvili
  • 2,627
  • 5
  • 30
  • 51
0
votes
1 answer

Using acts_as_tagger in User model with Devise

After watching RailsCast #382 on tagging with acts-as-taggable-on I have one question. When using Devise for authentication is there any way to set up tag ownership using current_user? class User < ActiveRecord::Base acts_as_tagger devise…
amarcy
  • 1,485
  • 2
  • 19
  • 28
0
votes
1 answer

Rails 3.2.8. Upgrade checkboxes from Rails 1.x.x to 3.2.8

Just was checking this episode by Ryan Bates and it seems that Rails 3.2.x has different setup. Seems that check_box_tag requires different attributes other than Ryan puts in there. AS it writes back unexpected kEND... to <%= check_box_tag…
Jackie Chan
  • 2,654
  • 6
  • 35
  • 70
0
votes
1 answer

Routing and checkboxes update from rails 1.x.x to 3.2.8

Just was checking this episode by Ryan Bates (http://railscasts.com/episodes/52-update-through-checkboxes) and it seems that Rails 3.2.x has different setup. Thus map.resources :tasks, :collection => { :complete => :put } does not produce expected…
Jackie Chan
  • 2,654
  • 6
  • 35
  • 70