
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Sometimes Git Bash has issues with gets... to get around them, run your program like this:
winpty ruby program_name.rb
Explore Ruby math basics, including integers vs floats, and how to use plus, minus, multiply, divide, exponent, and modulus, with examples showing integer division vs decimal results.
Apply assignment operators to turn arithmetic into assignments, using age = 39 and age += 1, and utilize plus, minus, multiply, divide, exponent, and modulus for looping counters.
RailsInstaller.org is down, you can find the installer here:
https://web.archive.org/web/20210306035811/http://railsinstaller.org/en
Start the Rails server to view your new project's default home page in the browser at localhost:3000. This confirms Rails is installed and running with the Puma server.
Learn to set the root route to the home page by editing config/routes.rb, replacing get 'home#index' with root 'home#index' and commenting out the old route.
Learn how to create an about page manually in Rails by defining an about method in the home controller, adding the about view, and configuring the route.
Master robust error handling by testing for gibberish inputs, distinguishing nil results, and displaying precise errors like 'stock symbol doesn't exist please try again' on the index page.
Create the devise user model and migrate the database in rails to add a users table with email, encrypted password, and tokens, then review the generated schema and routes.
Learn to bootstrap forms in Rails apps by wrapping inputs in form-group, applying form-control, and styling login, signup, and password pages with Bootstrap components like jumbotron and grid layout.
Learn how to connect stocks and users in rails using active record associations, defining has_many and belongs_to, updating models, and addressing scaffolding quirks for clean associations.
This lecture demonstrates adding stocks navigation links in a Rails app and explains CRUD—create, read, update, destroy—as a full scaffolded system for managing stocks.
Enable creation of stocks for the current user by using the current_user helper to populate the user_id, hide the field, and show only the logged-in user's tickers.
Discover how to filter the stocks index to show only the current user's stocks by comparing stock.user_id with current_user.id, and present show, edit, and destroy links.
Connect the stock table to quote data and style the index page with Bootstrap table classes, showing company name, ticker, current price, and market cap.
This is a bundle of two of my most popular courses, "Ruby On Rails: Stock Market App" and "Ruby Programming For Everyone".
The question I get asked most often is this..."Do I need to learn Ruby in order to use Ruby on Rails?"
The answer is...No! But you SHOULD learn Ruby if you really want to become a Rails master. This course is perfect because you'll learn both the Ruby programming language from beginner to advanced AND Ruby on Rails.
We'll start out learning Ruby and we'll start by setting up a free cloud development environment that has all the tools you need to start writing and running Ruby code.
Then, we'll dive into very basic computer science concepts. Things like:
After that, we'll move into more intermediate topics like:
Finally we'll finish up with more advanced topics like:
After that we'll move into Ruby on Rails and build a cool stock market app!
Our Stock Market app will let you look up stock quotes and financial information and save it to a database.
Users can create an account and sign up to your website, log in, add stocks, check stock prices and all kinds of other cool financial information.
We'll style the website using the popular Bootstrap CSS framework (I'll show you how to use it!)
We'll end by pushing our app to a professional web host (Heroku) which I'll show you how to use for free! We'll even talk about getting a domain name and all that fun stuff.
If you've ever wanted to learn Ruby on Rails and were put off about learning Ruby, then this is the course for you.
I'll see you on the inside!