You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very helpful to take the time to pre-populate your database with some dummy data before you start working on any features. It's nice to have some data to look at to see whether you are going down the right path.
It's also very helpful to other developers on the project, so they can get started quickly right after they clone.
In many cases, we need to use secret information in our Ruby; most commonly, API keys and email account passwords.
You should never paste these strings directly into your Ruby code. There are bots that can and will steal your API keys the instant you push your code to a public GitHub repository. Even if you pay for private repositories, it's a good idea to not store secrets in your repo -- you may not want all of your collaborators (interns?) to know, for example, the API keys to your payment processor.
(If you have already pushed an API key to a public repository, you should sign into your API dashboard now and invalidate that old key, and get a new one. Assume that the old one has already been stolen. Reverting your commit will do no good.)
But if our Ruby needs to use these secrets, but we can't keep them in our code, what's the solution? Environment variables. We're going to use a gem called Figaro to make this easy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails template for creating LTI apps (as mountable rails engines)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unfortunately with the recent releases of Rails 5 and Windows 10, and with RailsInstaller falling behind on updates, we need to take a few steps to fix some annoying incompatibilities once and for all.
First of all, the very first time you bundle for an app, remember to use the verbose command bundle install --without production instead.
SSL Errors
If you are experiencing one of the following issues:
So you've done some programming in the past, and are wondering whether you should waive DDDII.
Here are some reasons that students in the past have still found it worthwhile:
A primary focus of the course is familiarizing future managers with modern software development workflows, mostly centering around GitHub: version control, pull requests, code reviews, continuous integration, automated deployment, project management, etc. If you don't already have a solid process in place, then it might be worth seeing this one.
If you haven't built full-stack applications in the past, particularly with Ruby on Rails — it's just a joy. In the past, students who already knew how to program but had never done full-stack applications from soup to nuts got even more out of the class than beginners, because agile web development with Rails is like a superpower.
You're welcome to outpace the rest of the class and work on your own advanced projects, with guidance from me and the TAs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters