Welcome! This page is using CodeRay 1.1.2.

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

Page 252, 10 entries

s 2 lines of YAML 18 Bytes Show Edit Expand
1
2
VACA:
  lol: cona
s 7 lines of Ruby 308 Bytes Show Edit Expand
1
2
3
4
5
6
  <div class="field">
    <%= f.label :creator_id %><br />
  <%= f.collection_select :creator_id, Editor.all, :id, :name, :include_blank => true %>
  </div>
  <div class="field">
    <%= f.labe...
D 5 lines of Ruby by a 182 Bytes Show Edit Expand
1
2
3
4
5
class Document < ActiveRecord::Base
  belongs_to :creator, :class_name => 'Editor'
  belongs_to :revisor, :class_name => 'Editor'
  validates_presence_of [:body, :creator_id]
end
Doument 3 lines of Ruby 86 Bytes Show Edit Expand
1
2
3
class Document < ActiveRecord::Base
  validates_presence_of [:body, :creator_id]
end
Gemfile 4 lines of Ruby 70 Bytes Show Edit Expand
1
2
3
4
group :development do
   gem "nifty-generators"
   gem 'hirb'
end
Gemfile 4 lines of YAML 70 Bytes Show Edit Expand
1
2
3
4
group :development do
   gem "nifty-generators"
   gem 'hirb'
end
xxxx 1 line of C 49 Bytes Show Edit Expand
1
com.iq.notes.visualizer.type=professional // xyyy
database.yml 17 lines of YAML by Andrea Salicetti 370 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
development:        
  adapter: oracle_enhanced
  database: SIASVIL
  username: asal_gd_development
  password: asal_gd_development

test:
  adapter: oracle_enhanced
  database: SIASVIL
  use...
database.yml 17 lines of Ruby by Andrea Salicetti 370 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
development:        
  adapter: oracle_enhanced
  database: SIASVIL
  username: asal_gd_development
  password: asal_gd_development

test:
  adapter: oracle_enhanced
  database: SIASVIL
  use...
ajax_controller.rb 4 lines of Ruby 93 Bytes Show Edit Expand
1
2
3
4
# this is a test method
def test_method_name
  @value = "#{params[:value]} to string!"
end

Page 252, 10 entries