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
feedbacks GET /:username/feedbacks(.:format) {:action=>"index", :controller=>"feedbacks"} | |
POST /:username/feedbacks(.:format) {:action=>"create", :controller=>"feedbacks"} | |
new_feedback GET /:username/feedbacks/new(.:format) {:action=>"new", :controller=>"feedbacks"} | |
edit_feedback GET /:username/feedbacks/:id/edit(.:format) {:action=>"edit", :controller=>"feedbacks"} | |
feedback GET /:username/feedbacks/:id(.:format) {:action=>"show", :controller=>"feedbacks"} | |
PUT /:username/feedbacks/:id(.:format) {:action=>"update", :controller=>"feedbacks"} | |
DELETE /:username/feedbacks/:id(.:format) {:action=>"destroy", :controller=>"feedbacks"} |
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
<%= form_for(@feedback) do |f| %> | |
<% if @feedback.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@feedback.errors.count, "error") %> prohibited this feedback from being saved:</h2> | |
<ul> | |
<% @feedback.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
class FeedbacksController < ApplicationController | |
before_filter :find_user | |
def show | |
@feedback = @user.feedbacks.find(params[:id]) | |
end | |
private | |
def find_user |
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
aspen-mri-1.8.6 | |
* bamboo-mri-1.9.2 | |
bamboo-ree-1.8.7 | |
cedar (beta) |
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
Started GET "/assets/sign-in-with-twitter-56f86819ac755692904d912373db060b.png" for XX.XX.XXX.XX3 at 2011-10-06 10:27:32 -0700 | |
2011-10-06T17:27:32+00:00 app[web.1]: cache: [GET /assets/sign-in-with-twitter-56f86819ac755692904d912373db060b.png] miss, store | |
2011-10-06T17:27:32+00:00 heroku[router]: GET domain.heroku.com/assets/sign-in-with-twitter-56f86819ac755692904d912373db060b.png dyno=web.1 queue=0 wait=0ms service=21ms status=200 bytes=2490 | |
2011-10-06T17:27:32+00:00 heroku[nginx]: xx.xx.xxx.xx - - [06/Oct/2011:10:27:32 -0700] "GET /assets/sign-in-with-twitter-56f86819ac755692904d912373db060b.png HTTP/1.1" 200 2490 "http://domain.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1" mydomain.heroku.com | |
2011-10-06T17:27:56+00:00 app[web.1]: | |
2011-10-06T17:27:56+00:00 app[web.1]: | |
2011-10-06T17:27:56+00:00 app[web.1]: Started GET "/auth/twitter?utf8=%E2%9C%93&commit.x=171&commit.y=8&commit=Sign+in" for xx.xxx.xxx.xx at 2011-10-06 1 |
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
div#divider { | |
margin-top: 10px; | |
margin-left: auto; | |
margin-right: auto; | |
margin-bottom: 10px; | |
border-top: 1px solid #acadad; | |
border-bottom: 1px solid #fff; | |
width: 80%; | |
height: 0px; | |
padding: 0px 0px 0px 0px; |
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
ls /usr/local | |
bin heroku include mysql mysql-5.5.17-osx10.6-x86_64 | |
git hw_mobile_userdata lib mysql-5.1.52-osx10.6-x86 share |
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
# Get a URL's content to play with | |
content = contents[contents.keys.first] | |
# => [#<Nokogiri::XML::Element:0x48a9a86 name="p" children=[#<Nokogiri::XML::Text:0x48a9810 "The autobiography of Yohwan Lim, ">, #<Nokogiri::XML::Element:0x48a96ee name="i" children=[#<Nokogiri::XML::Text:0x48a9536 "Crazy As Me">]>, #<Nokogiri::XML::Text:0x48a931a " was released in Korea by BookRoad Publishers in October 25, 2004. This is my translation of the book, except the following four sections which were translated by BinaryStar of Teamliquid.net, which I have made minor changes: \"Hope on the Road Not Taken,\" \"Chapter One: The Game-crazed Kid,\" \"The Birth of the Emperor,\" and \"The Little Prince with Three Sisters.\"">]>, #<Nokogiri::XML::Element:0x48a9194 name="p" children=[#<Nokogiri::XML::Text:0x48a9022 "As of October 4, 2004:">]>, #<Nokogiri::XML::Element:0x48a8e92 name="p">, #<Nokogiri::XML::Element:0x48a8ce4 name="p" children=[#<Nokogiri::XML::Text:0x48a8af0 "The addition of e-sports organizations to major compani |
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
#(Element:0x8427df88 { | |
name = "a", | |
attributes = [ | |
#(Attr:0x841fe3a0 { | |
name = "href", | |
value = "http://google.com" | |
})], | |
children = [ #(Text "Google Home Page")] | |
}) |
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
Interactive ruby ready. | |
> food = ['chicken', 'steak', 'beef', 'pork'] | |
=> ["chicken", "steak", "beef", "pork"] | |
> food.each do |x| | |
.. puts x | |
.. end | |
=> #<SyntaxError: <script>:1: syntax error, unexpected end-of-file | |
food = ['chicken', 'steak', 'beef', 'pork'];food.each do |x|; | |