Welcome! This page is using CodeRay 1.1.2.

We currently have 3046 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 297, 10 entries

song 23 lines of ERb by song 542 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
<html>
 <head>
   <title>Online Cookbook</title>
 </head>
 <body>
   <h1>Online Cookbook</h1>
   <%= @content_for_layout %>
   <p>
     <%= link_to "Create new recipe", 
                 :...
fff 2 lines of Ruby by ff 12 Bytes Show Edit Expand
1
2
def foo
end
SysConfig 19 lines of Ruby by kongfw 657 Bytes Show Edit Expand
1
2
3
4
5
6
7
class SysConfig  
  
  EXCEPTION_NOTIFIER = {  
    :delivery_method => :smtp,  
    :sender_address => %w(beyondrails@gmail.com),  
    :email_prefix   => "BeyondRails",  
    :recipients   ...
c++ 4 lines of C by test 68 Bytes Show Edit Expand
1
2
3
4
public void main(char** args)
{
  cout << "hello, c++" << endl;
}
test 1 line of C 4 Bytes Show Edit Expand
1
asdf
install 1 line of Ruby 21 Bytes Show Edit Expand
1
require "validatable"
steps 32 lines of Ruby 725 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
steps_for(:visitor_contacts_xu) do

  Given "I am an anonymous visitor" do
    # no-op
  end
  
  When "I go to the contact form" do
    visits "/contact"
    # puts response.body
  end
  
  ...
Stories 25 lines of Ruby 725 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
Story: visitor contacts xu

  As a visitor to xploreu
  I want to contact xploreu
  So that I can tell them how awesome the site is
  
  Scenario: visitor sends message
    Given I am an anonymous ...
story runner 55 lines of Ruby 1.52 KB Show Edit Expand
1
2
3
4
5
6
7
require File.dirname(__FILE__) + "/../../spec_helper"

describe "/contacts/new" do
  it "should render the form" do
    assigns[:contact] = Contact.new
    
    render "/contacts/new.html.erb...
Rspec View 55 lines of Ruby 1.52 KB Show Edit Expand
1
2
3
4
5
6
7
require File.dirname(__FILE__) + "/../../spec_helper"

describe "/contacts/new" do
  it "should render the form" do
    assigns[:contact] = Contact.new
    
    render "/contacts/new.html.erb...

Page 297, 10 entries