I am getting Rack::Session::Abstract::SessionHash error with rails
edge when I start server.
Code works fine with rails 3.0.1 .
What's the fix?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonr
I am working on a rails3 project. Is there a tool to validate the
format of email address. It does not have to be fancy regex. Just a
few simple validations. However I don't want to reinvent the wheel?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: T
In rails3 this is what I get.
validates_presence_of :subject
#=> subject can't be blank
validates_presence_of :subject, :message => "can't be empty"
#=> subject can't be empty
However What I want is
#=> Please enter title
even though the field name is "subject".
How do I do that in rails3?
--
I am looking at rails edge source code.
I am able to do
puts User.find.to_yaml
However I am not able to find piece of code where 'def to_yaml' is.
How this to_yaml serialization is working?
can fully understand how to_json and to_xml is working but to_yaml
beats me.
Thanks
--
You received
class User < AR
end
user = User.new
Let's say that I have a user instance with me. After this record is
saved I want an after_save callback which would print the id of the
record.
The only catch is that I am not allowed to change the User class. How
can I accomplish my goal? Is that even possibl
No. It is not a rails3 thing. It was just me being stupid.
Can't believe I missed that. Spent so much time on this.
Thanks
On May 10, 4:41 pm, Colin Law wrote:
> On 10 May 2010 21:34, Nadal wrote:
>
> > I am using rails3 edge.
>
> > class user < AR
> > has_
I am using rails3 edge.
class user < AR
has_many :books
end
Following statement is failing in console.
User.first.books.find(:conditions => {:title => 'ror'})
ActiveRecord::RecordNotFound: Couldn't find Book without an ID
It is such a basic thing that I am sure can't fail.
Is it working fin
This issue is resolved. For the record I resolved this issue by
creating database through rake task.
rake mysql:drop_databases
rake mysql:build_databases
On May 1, 12:09 am, Neeraj Singh wrote:
> I downloaded the rails edge
>
> > cd activerecord
> > rake test_mysql
>
> I am getting an exception
In rails 2.3.5 world I get to see all the sql statements on my
console. Thanks to following line of code in my ~/.irbc
if ENV['RAILS_ENV']
Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
end
However above code does not do its magic in rails3 world.
In rails3 what do I need to do to
9 matches
Mail list logo