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
1
vote
1 answer

DangerousAttributeError in OmniAuth create is defined by ActiveRecord

Please see this page, as I have the same problem: DangerousAttributeError in OmniAuth Railscast Tutorial: create is defined by ActiveRecord However being fairly new to rails, I am not quite sure as to how to remove the fields they speak of from the…
Apane101
  • 1,121
  • 1
  • 14
  • 37
1
vote
1 answer

How to prevent Sunspot, Solr returning all records when params[:search] = ""

I just started learning to use Sunspot / Solr with Rails. I followed this RailsCast http://railscasts.com/episodes/278-search-with-sunspot When I have no search queries and the search field is blank, Solr is returning all results from the Article…
Brett Sanders
  • 813
  • 8
  • 21
1
vote
2 answers

Ruby on Rails getting wrong number of arguments (1 for 0)

I'm using similar code to Railscast 213 to display a calendar with records. The do line is causing a "getting wrong number of arguments (1 for 0): <%= calendar @date do |date| %> <%= date.day %> <% if @wolabors_by_date[date] %>
Reddirt
  • 5,913
  • 9
  • 48
  • 126
1
vote
3 answers

Get 403 (forbidden) when used jQuery File Upload to s3 rails app

I want to upload images to s3. For that I am following http://railscasts.com/episodes/383-uploading-to-amazon-s3 I am able to upload single image to s3 but now I am using jquery file upload to upload multiple files. It gave me 403(Forbidden) when…
Sahil
  • 491
  • 2
  • 9
  • 18
1
vote
1 answer

What Role System Did Ryan Bates Use In His Stripe Railscasts Tutorial?

I'm looking at Ryan Bates' Railscasts tutorial on integrating stripe (http://railscasts.com/episodes/288-billing-with-stripe), and I'm excited to try it out. Before he starts the tutorial though, he already has an authorization system that has…
Stepan Parunashvili
  • 2,627
  • 5
  • 30
  • 51
1
vote
3 answers

Which version to use when trying out Railscasts source code

I'm trying to get a railscasts working but apparently things have changed a lot in the last year... So how can you now against which version of ruby the railscast was done? The gemfile contains all versions of gems, but not the version of ruby to…
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
1
vote
1 answer

Ruby on Rails: Sortable Table Columns Error

I'm trying to follow a railcasts tutorial on Sortable Table Columns, and I am getting an error. SQLite3::SQLException: no such column: name: SELECT "projects".* FROM "projects" ORDER BY name asc I've followed the instructions in the tutorial, the…
Jazz
  • 1,090
  • 6
  • 23
  • 55
1
vote
1 answer

Mailer replacing domain name with webmaster email (namecheap and gmail)

I'm trying to set up a password reset mailer following this railscasts http://railscasts.com/episodes/274-remember-me-reset-password?view=asciicast. I am able to get my mailer to send emails after following the heroku blog to set up my environment.…
Huy
  • 10,806
  • 13
  • 55
  • 99
0
votes
1 answer

OmniAuth RailsCast (episode 235) issue with Remind Me (episode 274)

I followed Ryan Bates'/RailsCasts tutorial for cookies login and remind me functionality in an application I am building. [reference: http://railscasts.com/episodes/274-remember-me-reset-password?view=comments] I wanted to introduce his OmniAuth…
Verdi Erel Ergün
  • 1,021
  • 2
  • 12
  • 20
0
votes
1 answer

Ruby on Rails, how do I use Post to pass data since the changes to ActiveRecord?

Using code based upon an old Railscast, http://railscasts.com/episodes/142-paypal-notifications , I have been attempting to pass information about the cart to and from different parts in the site, the issue appears to be with the following code. def…
0
votes
1 answer

How to dynamically change position of form based on selection

I am building a website that is basically a small Content Management System. (in the sense that the user will be able to dynamicaly change most content of the site) In my rails app I have two models, a Category and a Subcategory. A Category has many…
ruevaughn
  • 1,319
  • 1
  • 17
  • 48
0
votes
1 answer

railscast 197 how to: function add_fields

I am following the railscast 197 but I'm using rails 3.1.3,jQuery and scaffold, no nifty:scaffold,everything works fine but I can't add fields, in that episode Ryan Bates give the code for jQuery, but is not working for me, here is my code: in…
suely
  • 334
  • 1
  • 8
  • 19
0
votes
3 answers

Undefined method `call' for nil:NilClass

So I'm playing around with Ryan Bates Simple_Form railscast, and I get the following error when I try to submit a form: NoMethodError in Products#index Showing /home/panos/sites/store/app/views/products/index.html.erb where line #8…
user818081
0
votes
1 answer

Divs instead of Tables in Rails generator

Is it possible to customize or find a gem that changes the behaviors of auto generating Tables in the views when I use rails scaffold and change it with Divs instead? Like cleaner templates, I'm using rayan's nifty generators but it uses tables…
Eki Eqbal
  • 5,779
  • 9
  • 47
  • 81
0
votes
1 answer

Correct syntax for nested sortable_element? Getting nil object

I followed Ryan Bates' rails tutorial on setting up a sortable list of objects. With some modifications, it's now working to the point where I can drag and drop a list of "belongs to" elements on a 'has many' page, and the post action is sent to my…
Nick
  • 839
  • 1
  • 10
  • 19