Skip to content

Commit

Permalink
2013-10-26 backport from railsgirls.com
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 26, 2013
1 parent 863e712 commit bc855d0
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 3 deletions.
37 changes: 36 additions & 1 deletion _posts/2012-04-18-app.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,28 @@ Rails の scaffold 機能を使って、list, add, remove, edit, view を生成
<div class="nix">
{% highlight sh %}
rails generate scaffold idea name:string description:text picture:string
{% endhighlight %}
</div>

<div class="win">
{% highlight sh %}
rails generate scaffold idea name:string description:text picture:string
{% endhighlight %}
</div>
</div>

The scaffold creates new files in your project directory, but to get it to work properly we need to run a couple of other commands to update our database and restart the server.

<div class="os-specific">
<div class="nix">
{% highlight sh %}
rake db:migrate
rails server
{% endhighlight %}
</div>

<div class="win">
{% highlight sh %}
ruby bin\rails generate scaffold idea name:string description:text picture:string
rake db:migrate
ruby bin\rails server
{% endhighlight %}
Expand Down Expand Up @@ -250,8 +264,29 @@ mount_uploader :picture, PictureUploader
root to: redirect('/ideas')
{% endhighlight %}

Test the change by opening the root path (that is, http://localhost:3000/) in your browser.

**Coachより:** routes について話してください。

**Rails 3 users:** You will need to delete the index.html from the `/public/` folder for this to work.

## Create static pages to your app

Lets add a static pages to our app that will hold information about the author of this application — you!

{% highlight sh %}
rails generate controller pages info
{% endhighlight %}

This command will create you a new folder under `/views` called `/pages` and under that a file called `info.html.erb` which will be your info page.

It also adds a new simple route to your routes.rb.

{% highlight ruby %}
get "pages/info"
{% endhighlight %}

Now you can open the file `/views/pages/info.html.erb` and add information about you in HTML and then take your browser to [http://localhost:3000/pages/info](http://localhost:3000/pages/info) to see your new info page.

## 次は?

Expand Down
2 changes: 2 additions & 0 deletions _posts/2012-04-18-guide.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,5 @@ Rails Girls チーム
* コーチに感謝のお礼をしましょう。

* 主催者にありがとうをいう。

* Share the numbers of your event by filling out this short [Questionaire](https://railsgirls.wufoo.eu/forms/rails-girls-events-all-the-numbers/)
14 changes: 14 additions & 0 deletions _posts/2013-05-02-install.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ Appleメニューをクリックして *About This Mac* (図 1) を選びます
gem update rails --no-ri --no-rdoc
{% endhighlight %}

Make sure that all works well by running the application generator command.

{% highlight sh %}
rails new railsgirls
{% endhighlight %}

**最後のステップ** コードを編集するのに必要なテキストエディタをインストールする。

このワークショップでは Sublime Text エディタを推奨しています。

* [Sublime Text エディタをダウンロードしてインストールする](http://www.sublimetext.com/2)
Expand All @@ -76,7 +83,14 @@ gem update rails --no-ri --no-rdoc
gem update rails --no-ri --no-rdoc
{% endhighlight %}

Make sure that all works well by running the application generator command.

{% highlight sh %}
rails new railsgirls
{% endhighlight %}

**最後のステップ** コードを編集するためのテキストエディタが必要になります。

このワークショップでは Sublime Text エディタを推奨しています。( Windows で Sublime Text を使う場合、日本語入力欄が入力箇所に出ない問題があります。気になる場合は以下の手順で日本語入力パッチ(修正プログラム)をインストールするか、あるいは別のエディタ、たとえば [Komodo Edit エディタ](http://www.activestate.com/komodo-edit/downloads) を使ってもいいです。 )

* [Sublime Text エディタをダウンロードしてインストールする](http://www.sublimetext.com/2)
Expand Down
5 changes: 4 additions & 1 deletion _posts/2013-05-10-EYDeploy.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You will need to have a GitHub account and a repo we can pull an app from. Follo

### Sign up for a Free Trial Engine Yard Account

Go to Engine Yard's [Website](https://www.engineyard.com/) and click on "Ruby" to sign up for your Free 500 Hour Trial. The sign up will send you a confirmation email, so go check your email, click on the link and sign in to your account. Click on the link under "Your available applications" that says "Engine Yard Cloud". This will take you to your dashboard.
Go to Engine Yard's [Website](https://www.engineyard.com/) and click on "GET STARTED FREE" to sign up for your Free 500 Hour Trial. The sign up will send you a confirmation email, so go check your email, click on the link and sign in to your account. Click on the link under "Your available applications" that says "Engine Yard Cloud". This will take you to your dashboard.

### Create your Engine Yard Cloud account

Expand Down Expand Up @@ -103,3 +103,6 @@ Once you've got your app up & running, be sure to click the "stop" button to sto
* [A video tutorial](https://support.cloud.engineyard.com/entries/21009937-Video-Tutorial-Set-up-an-Account-and-Deploy-an-Application)

* [Another Tutorial From the Engine Yard Site](https://support.cloud.engineyard.com/entries/20996751-Tutorial-How-to-Deploy-the-ToDo-Application-on-a-Trial-Account)



4 changes: 4 additions & 0 deletions _posts/2013-07-25-videos.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ permalink: videos

This is a selection of Rails Girls videos from around the world. Have one to share? Add it here.

### Rails Girls Taipei-01 2013

<div><iframe width="500" height="375" src="http://www.youtube.com/embed/9jZTbqokELM?rel=0" frameborder="0"> </iframe><p><a href="http://railsgirls.tw">Rails Girls Taiwan</a> on <a href="https://www.youtube.com/channel/UCGaidly9iC-V3P6hScH95Cw">Youtube</a>.</p></div>

### Rails Girls Brno 2013

<div><iframe src="http://player.vimeo.com/video/70095213" width="500" height="281" frameborder="0"> </iframe><p><a href="http://vimeo.com/70095213">Rails Girls Brno</a> from <a href="http://vimeo.com/user19466822">Rails Girls CZ</a> on <a href="https://vimeo.com">Vimeo</a>.</p></div>
Expand Down
43 changes: 43 additions & 0 deletions _posts/2013-10-16-remote-pairing-for-the-win.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: default
title: Remote Pairing For the Win!
permalink: remote
---

# Rails Girls Remote Pairing Tutorial

*Created by Ed Drain, [@SoldierCoder](https://twitter.com/soldiercoder)*

## Why is Remote Pairing so great?

First things first, what is my motivation for sharing this? If you are reading this, you are already aware of the power of [Rails Girls](http://railsgirls.com). In case you did not know, let me give you a few facts. Rails Girls is an organization that introduces women to web application development using Ruby on Rails. For many women around the world, it is a **powerful, emotional experience** that shows them that they can create something new for the Web and that they have support of other women who extended their privledge to them.

I said "around the world", didn't I? Indeed, Rails Girls is on **every continent** and in **130 \+ cities!** I know this is true because, through the generosity of Ryan Bates ([@RBates](https://twitter.com/rbates)), I have had the honor of distributing coupons good for three months free of [RailsCasts.com](http://railscasts.com) to so many of those cities. So there is part of the promise of Rails Girls -- that women, around the world, who need some way of lifting themselves up out of possibly dire circumstances and thru study and application of what they have learned, get the pot of gold at the end of the rainbow -- a high paying job where they are **respected for their creations**.

## But seriously, why is Remote Pairing so great?

Remote-pairing is so great because people who can benefit from people who would coach them are not always near to them. I know this because as a coach for [Rails Girls Summer of Code](http://railsgirlssummerofcode.org) who lived in Virginia, while the team I coached lived in London and Pennsylvania. If it weren't for remote pairing, I'd have to get on a plane or drive twelve hours just to show how to write a "hello, world!" example app!

## Ok, I'm sold! What do I need to remote pair?
* An Internet connection.
* One or more programming friends that want to remote pair with you
* [Madeye](https://madeye.io) -- this is really important! This will let you and your friends work on the same code and SEE what the other person is changing AS they change it!
* Optionally either Google accounts for you and your friends so you can hear each other or Skype accounts or anything that lets you all hear what the other says.

## How do I install Madeye?
1. Install [Node.js](http://howtonode.org/how-to-install-nodejs)
2. At your terminal type: `sudo npm install -g madeye` Now Madeye is installed!
3. Type `madeye` in the directory you want to share.
4. Madeye will report in your terminal the URL to share with your teammates and all of you can go there and edit code.

If
you are coaching, you and the person you are coaching can look on the left side of their browsers screen and see your icon in a particular directory. If the coachee clicks on that directory they will see your icon again on either a file or another directory. You can follow those down to whatever file you want to edit and look in the code for their cursor. Its **that** easy!

## My last thought
What a great and generous world this would be, if all of us extended some of our privledge to someone who has less. It would be a world that reflects that commonest of sayings that you probably hear at a meeting of your local Ruby/Rails meet-ups: "MINSWAN" -- Matz is nice, so we are nice! Let's get started being nice to each other!






2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Rails Girls の手引き</h2>
<a href="http://rgua.github.com">Guides in Russian</a><br/>
<a href="http://www.maujor.com/railsgirlsguide/">Guides in Brazilian-Portuguese</a><br/>
<a href="http://railsgirlslima.github.io/">Guides in Spanish</a><br/>
<a href="http://guides.railsgirls.tw/">Guides in Traditional Chinese</a><br/>
<a href="http://railsgirls.tw/">Guides in Traditional Chinese</a><br/>
</p>
</div>

Expand Down

0 comments on commit bc855d0

Please sign in to comment.