[Rails] Re: to_json problem (Rails2.2.2)

2009-02-23 Thread
Time Zone ? how to delete T && Z ? On Feb 23, 4:02 pm, 浩翔 wrote: > Hi all, > > i got a record from my project server side database, like this : > > @user = User.find 1 >then i cover @user to json format: > @user.to_json > >

[Rails] to_json problem (Rails2.2.2)

2009-02-23 Thread
Hi all, i got a record from my project server side database, like this : @user = User.find 1 then i cover @user to json format: @user.to_json the result : "created_at": "2009-01-28T12:29:32Z" what's the T and Z of created_at field ? but i change

[Rails] Re: javascript_include_tag question

2009-01-21 Thread
Hi all, I know how to disable it . it's not a random number ,it's a to asset timestamps to aid in cache management. simply add the following line to your config/environment.rb: ENV['RAILS_ASSET_ID'] = '' Alex On Jan 22, 2:12 am, Alex wrote: > Hi all, > > I'm use google gears,

[Rails] Re: Rails2.2.2, is it a bug?

2008-12-19 Thread
you can read On Dec 18, 11:46 pm, "almas ali" wrote: > Hi,Am Almas M totally new to this site i was jst going the site of Ruby's on > Rails i hav no idea how am i to begin with.It would be really gud if u guide > and let me wht is it all about. > > Rdgs > Almas --~--~-~--~~-

[Rails] Re: Rails2.2.2, is it a bug?

2008-12-19 Thread
.format to @release[:format] > :) > Cause format is a private method, so you can't call it. > No matter it is in the model or in the view. > So, you can use model[:method] to grab the correct column. > Or, you can try to use: read_attribute("format") in the model :)

[Rails] Re: Rails2.2.2, is it a bug?

2008-12-18 Thread
rked in the View? > > Maybe you can try this in the Model: > > self[:format] replace self.format > > > > On Wed, Dec 17, 2008 at 5:34 PM, 浩翔 wrote: > > > Thank you. > > > I know the 'format' cause tr

[Rails] Re: Rails2.2.2, is it a bug?

2008-12-17 Thread
link_to 'Back', releases_path %> Could u help me understand it ? On Dec 16, 8:52 pm, "Hassan Schroeder" wrote: > On Tue, Dec 16, 2008 at 1:36 AM, 浩翔 wrote: > > there is have a error."Attempt to call private method" --- > > format &

[Rails] Rails2.2.2, is it a bug?

2008-12-16 Thread
yesterday, i make a demo with Rails2.2.2. --- model : Movie --- class Movie < ActiveRecord::Base has_many :releases, :dependent => :destroy validates_presence_of :title end - model: Release --