0
@@ -119,9 +119,9 @@ module RenderActionWithApplicationLayout
0
# Set the view path to an application view structure with layouts
0
self.view_paths = self.view_paths = [ActionView::FixtureResolver.new(
0
"render_action_with_application_layout/basic/hello_world.html.erb" => "Hello World!",
0
- "render_action_with_application_layout/basic/hello.html.builder" => "xml.p 'Omg'",
0
- "layouts/application.html.erb" => "OHAI <%= yield %> KTHXBAI",
0
- "layouts/greetings.html.erb" => "Greetings <%= yield %> Bai",
0
+ "render_action_with_application_layout/basic/hello.html.builder" => "xml.p 'Hello'",
0
+ "layouts/application.html.erb" => "Hi <%= yield %> OK, Bye",
0
+ "layouts/greetings.html.erb" => "Greetings <%= yield %> Bye",
0
"layouts/builder.html.builder" => "xml.html do\n xml << yield\nend"
0
@@ -156,14 +156,14 @@ module RenderActionWithApplicationLayout
0
test "rendering implicit application.html.erb as layout" do
0
get "/render_action_with_application_layout/basic/hello_world"
0
- assert_body "
OHAI Hello World! KTHXBAI"
0
+ assert_body "
Hi Hello World! OK, Bye"
0
test "rendering with layout => true" do
0
get "/render_action_with_application_layout/basic/hello_world_with_layout"
0
- assert_body "
OHAI Hello World! KTHXBAI"
0
+ assert_body "
Hi Hello World! OK, Bye"
0
@@ -184,7 +184,7 @@ module RenderActionWithApplicationLayout
0
test "rendering with layout => 'greetings'" do
0
get "/render_action_with_application_layout/basic/hello_world_with_custom_layout"
0
- assert_body "Greetings Hello World! B
ai"
0
+ assert_body "Greetings Hello World! B
ye"
0
@@ -194,7 +194,7 @@ module RenderActionWithApplicationLayout
0
test "builder works with layouts" do
0
get :with_builder_and_layout
0
- assert_response "<html>\n<p>
Omg</p>\n</html>\n"
0
+ assert_response "<html>\n<p>
Hello</p>\n</html>\n"
0
@@ -204,7 +204,7 @@ module RenderActionWithControllerLayout
0
class BasicController < ActionController::Base
0
self.view_paths = self.view_paths = [ActionView::FixtureResolver.new(
0
"render_action_with_controller_layout/basic/hello_world.html.erb" => "Hello World!",
0
- "layouts/render_action_with_controller_layout/basic.html.erb" => "With Controller Layout! <%= yield %>
KTHXBAI"
0
+ "layouts/render_action_with_controller_layout/basic.html.erb" => "With Controller Layout! <%= yield %>
Bye"
0
@@ -234,14 +234,14 @@ module RenderActionWithControllerLayout
0
test "render hello_world and implicitly use <controller_path>.html.erb as a layout." do
0
get "/render_action_with_controller_layout/basic/hello_world"
0
- assert_body "With Controller Layout! Hello World!
KTHXBAI"
0
+ assert_body "With Controller Layout! Hello World!
Bye"
0
test "rendering with layout => true" do
0
get "/render_action_with_controller_layout/basic/hello_world_with_layout"
0
- assert_body "With Controller Layout! Hello World!
KTHXBAI"
0
+ assert_body "With Controller Layout! Hello World!
Bye"
0
@@ -265,8 +265,8 @@ module RenderActionWithBothLayouts
0
class BasicController < ActionController::Base
0
self.view_paths = [ActionView::FixtureResolver.new({
0
"render_action_with_both_layouts/basic/hello_world.html.erb" => "Hello World!",
0
- "layouts/application.html.erb" => "OHAI <%= yield %> KTHXBAI",
0
- "layouts/render_action_with_both_layouts/basic.html.erb" => "With Controller Layout! <%= yield %> KTHXBAI"
0
+ "layouts/application.html.erb" => "Oh Hi <%= yield %> Bye",
0
+ "layouts/render_action_with_both_layouts/basic.html.erb" => "With Controller Layout! <%= yield %> Bye"
0
@@ -292,14 +292,14 @@ module RenderActionWithBothLayouts
0
test "rendering implicitly use <controller_path>.html.erb over application.html.erb as a layout" do
0
get "/render_action_with_both_layouts/basic/hello_world"
0
- assert_body "With Controller Layout! Hello World!
KTHXBAI"
0
+ assert_body "With Controller Layout! Hello World!
Bye"
0
test "rendering with layout => true" do
0
get "/render_action_with_both_layouts/basic/hello_world_with_layout"
0
- assert_body "With Controller Layout! Hello World!
KTHXBAI"
0
+ assert_body "With Controller Layout! Hello World!
Bye"
OMG!
This was hilarious. XD
ROFLMAO!
LOLWTF?!
Does this mean that Rails is now ready for the enterprise?
LOLWY? :(
ZOMG
OMGHI
ΩG
@topfunky - if these were kept in it'd show that it was ALREADY enterprise ready!
@topfunky - Plainly not. I don't see anything about the addition of an "OMGFactoryFactory" class or something of that sort.
ROFLAMAO!
I wish this was like the last commit before Rails 3 frozen; that would have been so awesome. B)
lol zomg lmao
@grimen, I tried to hold off till the last minute :)
Epic.
Ω
If anything, you should've left OMGIMPLICIT <%= yield %> KTHXBAI
:P Hilarious!
Haha, this diff is so funny to read! I actually considered taking the Lighthouse ticket to do this on the Rails Bug Mash day, but i didn't, so it's nice to see the result. Good work!
My favourite bit was the BadOmgFailLolLayout.
whoops, that last comment was me, not edendevelopment. FAIL AIMEE logged in on the wrong username.
Why remove it… coding is so much more fun like this ;)
Epic fail... let's build enterprise so?
Awesome diff. This is exactly how I write code.
Good riddance. It's more important for code to be simple and clear than "fun" to read (which is not so fun when you're trying to understand difficult code).
We'll all die.
A little part of me just died with this commit.
zOMG - a kitteh died for each change this commit.
You made it on top of hacker news. Congratz.
benlovell: "A little part of me just died with this commit."
I second that
"Revert. revert, revert!"
You're all growns up.
Classic.
Fork rails, those changes are in-acceptable!
I demand omghax!
This is a milestone in the Rails' history ROFL
You damn atheists! There is no hope for you in the afterlife.
I just spilled out a little for my fallen OmgOmgz :(
Wow... The problem is that nobody would actually consider "Hi hello, ok thanks thanks bye" and improvement over "OHAI, KTHXBAI" would they?
Like with some features that have been taken out of Rails core... Can we expect this to be released as a plugin instead?
assert !defined?(OmgOmg)really made me laugh!@JonGretar: act_as_omg
For everyone but vilcans:
If you need to get a fix for LOLcode every now and then, and can no longer get it from Rails Core... check out my gem CsvPirate, written entirely in Pirate:
http://github.com/pboling/csv_pirate
Yes, I admit, the code is confusing... because few people speak pirate anymore. But whose fault is that?
I'm utterly indifferent, but just wanted to join in on the hog-piling fun: death to LOL
OMGWTFBBQ!
Aw, such a shame...
If you are going to replace juvenile at least replace it with clever
my vote is for a revert.
I hope people don't git blame the removed lines...
Please restore the LOLz.
i'd like the lolz back in my tests please
The LOLz are in the mind of the loller.
They fucking took out the zOMGs?!
Inhuman slaughter ... You should use "o#{109.chr}g" etc from now on.
OMG -> FAIL? #FAIL?
Yo Dawg, I heard u liek memes so i put a FAIL in your RAILS so u can scale while u remove OMG?
I refuse to use Rails 3 until all these are put back.
Reasoning?
"omg" is shorter than "overwrite" and so the loading of the framework will be quicker, right? :)
Ahah :D
great read, many lennys
@radar, yes, using 'omg' is faster... we had to take a performance hit on the Rails 3 code base to put this in...
but for every gain there is a sacrifice
:)
How would OMG pluralize?
OMGZ, obviously.
OMGZ0RZ
Great :P
GOSH OMG Lolz
You've improved code quality: WTFs/minute have decreased!