This repository is no longer maintained. Each episode is now in its own repository here:
If you would like to download the source code for all episodes try this script.
NOT MAINTAINED. See README.
Home Page: http://railscasts.com
License: MIT License
This repository is no longer maintained. Each episode is now in its own repository here:
If you would like to download the source code for all episodes try this script.
First time on github and a ruby/java newby, I came from .NET.
Everything seems to be working great with the code, however when I click to Add Job to create the fields, the output on the screen is HTML markup like
#ldbdoe25-4973 - HTML4STRICT - Sourcecode
How do I make it display the fields and not the code.
Thanks in advance.
NoMethodError in AuthenticationsController#create
undefined method `find_by_provider_and_uid' for Authentication:Class
I define it in stackoverflow. http://stackoverflow.com/questions/13561140/i-am-using-rails-cast-omniauth-and-i-get-this-error
What did I do wrong??????
MacBook-Pros-MacBook-Pro:ror macbookpro$ git clone http://github.com/ryanb/railscasts-episodes.git
Initialized empty Git repository in /Volumes/Data/work/ror/railscasts-episodes/.git/
got 9496377
walk 9496377
got 4c98abc0fdbebce5e2a52618a70e48aed5c2ed88
got 0cf4a0b
walk 0cf4a0b
Getting alternates list for http://github.com/ryanb/railscasts-episodes.git
Getting pack list for http://github.com/ryanb/railscasts-episodes.git
Segmentation fault
MacBook-Pros-MacBook-Pro:ror macbookpro$
Thanks... it is 4 am now, can't think straight..
Can not install Faye.. I tried numerous ways and i get an error saying failed to install gem because of a make_out file conflict. Any guidance or suggestions?
From a GitHub message:
I've been following Episode 154 and have struck an issue.
I also downloaded the code for that episode at it appears that the same error is appearing there.
The code between mine and the one on your source at the same.
The error i am getting is
You have a nil object when you didn't expect it! The error occurred while evaluating nil.comments
visitors can help Railscasts-blog to get rid of spam by reporting it -
than when spam report reach to a certain limit it will be transfered to a garbage db.
Hi,
I have a problem: if I register using twitter or facebook instance, the password field stay blank. Then if the user try to login using email + password
I get the following error:
BCrypt::Errors::InvalidHash in Devise/sessionsController#create
invalid hash
How can I prevent this to happen ?
Thanks a lot.
I am trying to run chatter-after just as I cloned it from repo, faye running on thin just as described. Unfortunately, after visiting http://localhost:3000/ and hitting "Send" button, HTTP 500 is returned from rails (and 200 from faye):
Template is missing
Missing template messages/create with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/home/ernest/programming/sandbox/ruby/episode-260/chatter-after/app/views"
Unless I missed it, you said in this episode that you'd show us how to use the generators elsewhere, which wasn't mentioned after the initial mention. I thought I'd mention that. :D
I've benefited from railscasts more than any information on rails out there, (even stackoverflow is distant 2nd), but getting the usefulness of a railscast ported into the latest version of rails is the biggest (perhaps still minor) challenge to a noob.
Since the episodes are open-source on github, can anyone update the episodes? Where would they be visible?
Hello,
in 2015, There are some new issues in your encrypted paypal button.
Since december 2014, Paypal security is using TLS and no longer SSL due to its recent vulnerabilities.
So what will be the new ruby Syntax and/or configuration for encrypting paypal form button in your function "encrypt_for_paypal(values)" ?
Rails 3.1rc6
Problem solved by adding :
config.autoload_paths += Dir["#{config.root}/lib/**/"]
in config/application.rb
To replicate:
Survey is created without Question1. Answer1 text is lost.
I want survey to throw error on submit noting that Qestion1 can't be blank. Any ideas?
Im using Rails 4, I really don't know what more i can do to fix this error :(
class UsersController < ApplicationController
def index
end
def show
end
def new
@user = User.new
end
def create
@user = Student.new(user_params)
if @user.save
flash[:success] = 'Welcome to Bilden App!'
sign_in @user
redirect_to user_steps_path(:new, :user_id => @user.id)
else
render :new
end
end
private
def user_params
params.require(:user).permit(:first_name,:last_name, :email, :password, :password_confirmation,:career_code, :extra_credits)
end
class UserStepsController < ApplicationController
include Wicked::Wizard
steps :new, :new2
def show
@user = current_user
render_wizard
end
def update
@user = current_user
@user.attributes = user_params
render_wizard @user
end
private
def redirect_to_finish_wizard
redirect_to root_url, notice: "Thank you for signing up."
end
def user_params
params.require(:user).permit(:first_name,:last_name, :email, :password, :password_confirmation,:career_code, :extra_credits)
end
end
<%= form_for @user, url: wizard_path, method: put do |f| %>
Hello Ryan
I am working on a survey app. where Survey has_many questions and question has_many options. Pretty much same as from your example.
everything works while creating the survey. it creates Survey, Questions and Options. But when updating.. it doesnt update Options for a given question.
I am using Rails 2.3.14
actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
Ascii85 (1.0.1)
attr_encrypted (1.1.2)
builder (3.0.0)
bundler (1.1.3, 1.0.18, 1.0.17)
daemons (1.0.10)
delayed_job (2.0.7, 1.8.5)
eigenclass (1.1.1)
encryptor (1.1.3)
factory_girl (2.6.3)
faker (1.0.1)
fastercsv (1.5.4)
haml (3.1.4)
hoptoad_notifier (2.4.11)
htmlentities (4.3.1)
httparty (0.8.1)
i18n (0.4.2)
json (1.7.0)
mail (2.4.3)
metaclass (0.0.1)
mime-types (1.17.2)
mocha (0.10.5)
multi_json (1.1.0)
multi_xml (0.4.2)
nokogiri (1.5.2)
oauth (0.4.5)
pdf-reader (1.0.0)
pg (0.13.2)
polyglot (0.3.3)
prawn (0.12.0)
rack (1.1.3)
rails (2.3.14)
rake (0.9.2.2, 0.9.2)
RedCloth (4.2.9)
right_aws (3.0.3)
right_http_connection (1.3.0)
ruby-net-ldap (0.0.4)
ruby-ole (1.2.11.3)
ruby-rc4 (0.1.5)
sanitize (2.0.3)
settingslogic (2.0.8)
spreadsheet (0.6.8)
state_machine (1.1.2)
tiny_mce (0.1.8)
treetop (1.4.10)
truncate_html (0.3.2)
ttfunk (1.0.3)
and rubygem version is 1.8.6
my codebase matches exactly with your episode 196.
params looks OK as well. not sure what this could be. you think version of rubygems can make a difference?
Ajit
i tried
bundle exec rake jasmine:ci
it no longer works.
-=-=-=-=-=
CreditCard
run validates when text field loses focus
TypeError: Object # has no method 'validateCreditCardNumber'
I couldn't see the episodes code older than 106.
Is it moved to somewhere else or deleted?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.