Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Ruby Controller example |
16 lines
of
Ruby
by
d4x
|
383 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
class CommentsController < ApplicationController
def create
@post = Post.find(params[:post_id])
@comment = @post.comments.create(params[:comment])
redirect_to post_path(@post)
... |
|
ca |
1 line
of
Ruby
|
15 Bytes |
Show |
Edit |
Expand |
|
a |
7 lines
of
Ruby
by
a
|
292 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
opus_magnum = true
def salve_hannah
|
|
code diff |
24 lines
of
diff
|
402 Bytes |
Show |
Edit |
Expand |
|
php/html mix |
24 lines
of
HTML
by
ben
|
1.39 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
<h3>Daniweb Control Centre</h3>
<div class="row-fluid show-grid">
<div class="span3 eqcolumn">
<h4>Favourite Forums</h4>
<p> |
|
asddsa |
2 lines
of
C++
|
23 Bytes |
Show |
Edit |
Expand |
1
2 |
void main()
int a = 1; |
|
test |
15 lines
of
PHP
|
564 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
function custom_wmu_image_sizes($sizes) {
unset( $sizes['thumbnail']);
unset( $sizes['medium']);
unset( $sizes['large']);
unset( $sizes['full'] ); |
|
prueba |
9 lines
of
Ruby
by
Yo
|
177 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
helpers do
def current_user
if session[:session]
@current_user ||= User[:session => session[:session]]
else
nil
end
end
end |
|
If block |
5 lines
of
JavaScript
|
82 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
if(condition) {
} else {zscassadsa
} |
|
XML |
210 lines
of
XML
by
Teefan
|
8.5 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<?xml version="1.0" encoding="UTF-8"?>
<Response ResponseReference="REF_D_026_82-1363674497125">
<ResponseDetails Language="en">
<SearchItemResponse ItemType="hotel">
<ItemDetails>
... |
|