March 2010
2 posts
class GuestPerson
def method_missing( meth_name )
raise LoginRequiredError
end
def respond_to( meth_name )
true
end
# overwrite ruby's id method
def id
raise LoginRequiredError
end
end
February 2010
5 posts
Recycled objects →
“You really advise me to read from the database at every request? Seems a little inefficient.”
I’m afraid of Rails.
– Twitter / botanicus
Rails has the power to seriously damage ecosystem of Ruby software
– Ruby & Stuff - Dear Rails, stop steal our projects NOW!
Jonesy__: Hi, in my app I am getting InvalidAuthenticityToken. I have cleared...
– #rubyonrails
23:18 actsasjason: does anyone write test in here?
23:18 RubyPanther: no I...
– #ror
January 2010
5 posts
RubyPanther: testing isn’t nearly as important as important a skill as...
– #rubyonrails - “wait. what?”
blaines: What’s a good way to save an activerecord object in a callback...
– #rubyonrails - RTFM
rhizmoe: unless User.first, User.create(…); end
– #rubyonrails - how to implement an Admin role security check
toretore: it’s pretty obvious from some of the entries who put them there...
– #railsbridge
03:37 weev: “Unto him that blasphemeth against the Holy Ghost it shant be...
– #rubyonrails
November 2009
2 posts
After I handed in my resignation letter yesterday, my manager remarked that...
– http://twitter.com/batasrki/statuses/6085981205
crazy_pete: i just know BETTER than to use gems mark[oz]
– #rubyonrails
October 2009
10 posts
Management needs me to use an outdated authentication system. And they want no...
– #rubyonrails
crazy_pete: rails is 100% pure ruby? Really?
– #rubyonrails
it’s just kind of sad that Rails is a bit like the World of Warcraft of...
– allcapitalized - http://twitter.com/allcapitalized/status/5232259537
The fact that RoR decided that SqlLite is the default database is a pretty good...
– rubyonrails-talk
I wish ROR simply disappear, and let proper programmers do their job.
– http://magentoconsultant.com/wp2/?p=2568
xjunior: I need a favor from someone here. I need that someone just freeze the...
– #rubyonrails
User1: you got laid?
User2: UNOBTRUSIVELY
– #railsbridge - we are taking our work home.
One solution is to pass current_user to all the models whenever you need....
– Using current_user in model and other places
i tried session[:@list.id][:s_answer] = @list.answer. why doesn’t that...
– #rubyonrails
The Works
is there a good way to adjust the looks of your webpages?
reaVer: learn css.
so css works with ruby?
• Kalzath is sensing a railswtf entry
September 2009
14 posts
A lady could have given a birth to a baby in 9 months, but Rails 3 team could...
– Twitter / RailsGirl aka WebReservoir aka SoftMind
how do i change routes so user_path(1) will be /1 and not /users/1 ?
– #rubyonrails
Note: for all you hardheaded shitasses out there, allow me to explain the WTF is that /1 is no more “pretty” than /users/1
anything that imagemagick can do, paperclip can too
– #rubyonrails typical misguidance
was after_update deprecated?……. ah nvm didnt scroll down the docs
– #rubyonrails
I cut and pasted some code once. The app still worked afterwards. That...
– Twitter / James Weiner
hehe. I was thinking about taking twitter api data and piping it into a...
– #rubyonrails
I don’t get RailsWTF anymore. Where are the WTF’s?
– Twitter
whats going on with merb? are they still developing new features or is every new...
– #rubyonrails
what’s #{} called?
– #rubyonrails
Besides decoupling views from controllers, a cell also implements business...
– Cells - Components For Rails: Overview
I think [Ruby on] Rails has tapered out a little bit lately. Maybe the new...
– PHP creator Rasmus Lerdorf
Hello! I can’t seem to remember the command to create a ruby environment?
– #rubyonrails
hey, how should i start ror? i know advanced php
– The Eternal Question [via #rubyonrails]
August 2009
11 posts
how do i call length on nil?
– #rubyonrails
I’m coding Ruby on Rails outside on my porch. It’s still 93’...
– Twitter Spammer
[…] this is outrageous instance variables.
– Trapped In Ruby on Rails Reserved Words | CodeWeblog.com
A must read WTF
what if all maintainers get hit by a bus? (BUS FACTOR)
– #ruby-lang troll pointing out a danger in programming in Ruby [and why Ruby doesn’t scale]
I’m assuming my question may be too complicated for this room, but I...
– Idiot in #rubyonrails, thinking this would motivate anyone to help him
Insignificant Whitespace
def self.labelable #:nodoc:
public_instance_methods.
reject { |h| h =~ /form|field_set|submit|hidden|password|file/ || h =~ /_with(out)?_label/ }.
map { |x| x.to_sym }
end
Ruby on Rails has grown enormously due to its following benefits:
It follows Agile Software Development cycle
It is consistent & simple; and supports Perl and Python. [Emphasis added]
It uses the Model-View-Controller (MVC) architecture pattern to organize application programming.
It provides scaffolding which can automatically construct some of the models needed for a basic website.
...
"because i want to see what AR generates"
module ActiveRecord
class Base
class SQLReturn < StandardError; end
def self.sql_for(method = nil, *args, &block)
connection.class_eval do
alias_method :old_execute, :execute
alias_method :execute, :return_sql_without_executing
end
method && send(method, *args, &block) || self
rescue ActiveRecord::Base::SQLReturn => e
...
unless @sense.find(&:any?)
RubyPanther: unless [@clients,@employees,@customers].find(&:nil?)
Hi doubt in unit testing -
Ruby on Rails:... →
July 2009
11 posts
Or Safety Googles
i want to ask 1 question
when i develops application with Ruby on Rails
then if i have to use any plugin
then i have to surf on Net and then find it and then use it
why it is not like that
basic plugins should be provided with Rails
so i have not to surf on Net and install
when i install rails
don't worry, rails 3 will fix all of this
oh that's great
it will be so powerful you'll need safety goggle to operate it
*goggles
is it so ?
or kidding ?
yes, there will be a warning label on the package
when Rails3 will come ?
soon, very soon
when you least expect it
k