On Tue, Feb 28, 2012 at 5:31 PM, Colin Law wrote:
On 28 February 2012 11:53, sachin kewale wrote:

On Tue, Feb 28, 2012 at 5:06 PM, Michael Pavling wrote:
On 28 February 2012 11:26, sachin kewale wrote:
i am getting an error 'undefined method 'current' for 852:Fixnum',
the
error coming for following line

<%if @expert_pagination.current.previous%>
....and the value of @expert_pagination is what? Have you debugged it to
see?
I assume you expect it to be an object of some sort with a method
".current"; but the error is telling you that it's a Fixnum...
yes the @expert_pagination is object
No it is not an object, it is a number. Have a look at the Rails
Guide on Debugging to get ideas on how to work out what is going on.

Colin
one more condition is there as same
above
'@book_pages.current.previous' here it is getting the value in number
(1,2,3,4)
here also it is given same error.

--


--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


--
gplus.to/clanlaw

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
yes it is number ,but when the number is like 6,7 it is giving an error
''undefined method 'current' for 852:Fixnum''

--
Sachin

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 9 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 28, '12 at 11:26a
activeFeb 29, '12 at 9:35a
posts9
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase