[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 浩翔
why i can call format in this page: -- app/views/release/show.html.erb -- Movie: <%=h @release.movie_id %> Format: <%=h @release.format %> Released on: <%=h @release.released_on %>

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

2008-12-18 Thread almas ali
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 --~--~-~--~~~---~--~~ You received this message because you are

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

2008-12-18 Thread CFC
Same as the model Change @release.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 :) On Thu,

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

2008-12-18 Thread 浩翔
Thank you. I know the issue.sefl[:format] is good. but i dont' understand why it reported the error : "Attempt to call private method" in View page, when i called show action. I know the column 'format' will be cause trouble.beacuse all of instance variable has the private method nam

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

2008-12-17 Thread CFC
Did you mean: You got the error in the Model, but it was worked 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 trouble, it's a private method ,cause > stop calling

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

2008-12-17 Thread 浩翔
Thank you. I know the 'format' cause trouble, it's a private method ,cause stop calling method_missing, I change 'format' to 'formater' or other form, it's be fine. but why this is good : -- app/views/release/show.html.erb ---

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

2008-12-16 Thread Hassan Schroeder
On Tue, Dec 16, 2008 at 1:36 AM, 浩翔 wrote: > there is have a error."Attempt to call private method" --- > format See: -- the "reported to cause trouble" section includes 'format'. You might want to rename that attribute of your mode