- Introduction
- Concepts How Rails Works Six Perspectives On a Rails Application Rails Stack
- Product Planning user stories BDD Cucumber features *** collaboration
This file contains 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
-> playmo testapp | |
create | |
create README | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/images/rails.png | |
create app/assets/javascripts/application.js |
This file contains 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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* |
This file contains 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
/* | |
*= require_self | |
*/ | |
html, body { | |
background-color: #eee; | |
} | |
body { | |
padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */ | |
} |
This file contains 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
My rails_apps_composer gem creates an application template from | |
various "recipes" (similar to Michael Bleigh’s RailsWizard gem): | |
https://github.com/RailsApps/rails_apps_composer | |
I've got a recipe that creates a project-specific rvm gemset. | |
Quite a few users use the recipe without problems but several | |
have reported errors. I'm not able to identify the source of the errors. | |
I'd like to get some help. First, to review my code and identify |
This file contains 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
say_wizard "switching to gemset '#{app_name}'" | |
unless Gem.loaded_specs['rvm'].nil? | |
if Gem.loaded_specs['rvm'].version > Gem::Version.create('1.11.3.4') | |
raise "Please update rvm gem to 1.11.3.5 or newer" | |
end | |
end | |
begin | |
RVM.gemset_use! app_name | |
rescue StandardError => e | |
raise "rvm failure: unable to use gemset #{app_name}, reason: #{e}" |
This file contains 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
// https://segment.io/railsapps/snippet/ | |
var analytics=analytics||[];analytics.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=function(e){return function(){analytics.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["identify","track","pageview","ab"];for(var s=0;s<i.length;s++)analytics[i[s]]=r(i[s])}, | |
analytics.load("xxxxxxxxxx"); | |
// run analytics on every page | |
$(document).ready(function() { | |
var user_id = $('#body').data('user_id') | |
var user_name = $('#body').data('user_name') | |
var user_plan = $('#body').data('user_plan') | |
// https://segment.io/railsapps/setup | |
analytics.identify(user_id, { |
This file contains 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
Last login: Wed Feb 27 12:52:37 on ttys000 | |
/etc/zprofile:source:2: no such file or directory: /etc/profile.d/rvm.sh | |
/Users/danielkehoe/.zprofile:source:2: no such file or directory: /usr/local/rvm/scripts/rvm | |
set aliases from ~/.oh-my-zsh/lib/aliases.zsh | |
added to PATH and ENV from ~/.zshrc | |
railsapps rvm -v | |
rvm 1.18.14 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] | |
$ rvm get head --autolibs=3 |
This file contains 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
set aliases from ~/.oh-my-zsh/lib/aliases.zsh | |
added to PATH and ENV from ~/.zshrc | |
$ echo $SHELL | |
/bin/zsh --login | |
$ if [[ -o login ]]; then; print yes; else; print no; fi | |
yes | |
$ rvm -v | |
rvm 1.18.14 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] |
This file contains 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
set aliases from ~/.oh-my-zsh/lib/aliases.zsh | |
added to PATH and ENV from ~/.zshrc | |
$ ruby -v | |
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] | |
$ rvm get head | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 185 100 185 0 0 291 0 --:--:-- --:--:-- --:--:-- 1250 | |
100 11525 100 11525 0 0 8551 0 0:00:01 0:00:01 --:--:-- 42843 | |
Downloading RVM from wayneeseguin branch master |
OlderNewer