Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Calling Method / Incrementing Value


  • Please log in to reply
1 reply to this topic

#1 jcam

jcam

    Passenger

  • Members
  • 1 posts

Posted 19 December 2013 - 08:04 PM

Hi All...

 

I'm just starting with rails - so I'm sure this is a real noob question.

 

I'm using Rails 4 and ActiveAdmin... and I'm trying to increment the value of an integer field (an order number) on a form.

 

The problem is... when I try calling the method I created in my model through ActiveAdmin... I get a NoMethod Error...

 

If I render the form outside of ActiveAdmin... it does work (just my nesting form doesn't).

 

Any one have any ideas?

 

Sorry if this is the wrong section as well.



#2 Ohm

Ohm

    Guard

  • Members
  • 179 posts
  • LocationCopenhagen

Posted 20 December 2013 - 07:19 AM

We probably need to see some code, and perhaps the error you get, if we are to help you.


Blog: http://ohm.sh | Twitter: madsohm





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users