Git Product home page Git Product logo

railscasts-episodes's Introduction

Notice

This repository is no longer maintained. Each episode is now in its own repository here:

https://github.com/railscasts

If you would like to download the source code for all episodes try this script.

railscasts-episodes's People

Contributors

rdsoze avatar ryanb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

railscasts-episodes's Issues

Segmentation fault, HELP!!!

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..

Episode 260 Messages

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?

Episide 154 broken?

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

anti-spam :

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.

Episode 236, when register with twitter or facebook

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.

Episode #260 - Missing template error

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"

Episode 218 - No extraction

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

Updated episode source code

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?

Ep 143 Paypal security issue

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)" ?

Episode #346 - No route matches {:action=>"show", :controller=>"user_steps", :id=>nil}

Im using Rails 4, I really don't know what more i can do to fix this error :(

User Controller

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

end

User steps controller

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


View(User steps)

<%= form_for @user, url: wizard_path, method: put do |f| %>

<%= f.submit "Continue" %> or <%= link_to "skip this step", next_wizard_path %>
<% end %>

multiple nested forms are unable to update child elements

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

#261 Testing JavaScript with Jasmine

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.