June 2009
14 posts
hey, what is the opposite of the h helper in Rails?
– #rubyonrails
hi there. I’m still quite new to ruby RoR, but I’m trying to write a...
– #rubyonrails
New Router kills love →
class TaskReference < ActiveRecord::Base
def destroy
# make sure we do not try to destroy non-existing references
super if TaskReference.exists? self
end
end
It's a Load Alright
class MoveCustomersToStopThru < ActiveRecord::Migration
def self.up
Load.class_eval do
has_and_belongs_to_many :customers
end
add_column :loads, :customer_id, :integer
add_column :loads, :stop_thru_id, :integer
Load.all.each do |load|
cs = load.customers
load.customer = cs[0]
load.stop_thru = cs[1]
load.save
end
change_column...
so it's a plugin, like flash?
RORgasm: guys is there a nice plugin i can use to have sortable ajax tables for my index view?
danabrit: not that i know of.
lifo: it's called javascript
toretore: is that a gem?
lifo: nop. it comes with the browser
lifo: i think
RORgasm: what r u guys talking about?
toretore: so it's a plugin, like flash?
lifo: kinda, yeah
All i see and have read is Demanding for this support.
– WebReservoir in Ruby on Rails: Talk | Google Groups
But your dead slow blog updates & info will kill us before Merb 1.1
– Merb kills people
rails still isn’t a good role model for good, idiomatic ruby code.
– the usual rails-hating bullshitters in #ruby-lang
I wonder if I have to spend time to learn RoR
– #rubyonrails
great. validates_numericability_of is broken, too
I beg your pardon
It fails for Infiinity
esben_: why would you need to use Infinity?
rds: To store +infinity in the database?
and how do you intend to do that?
rds: IT's postgres
and why?
rds: Because it is the natural value for infinite capacity (in this case)
Merb Solves Everything
rails is inconsinstent sometimes
convention over consistency
:)
its good that the merb guy its on board now
anyone know why Unicorn.create is throwing this error? MagicalCreatureError:...
– #rubyonrails
Web Applications Should Be Compiled →