Jump to content

The ultimate community for Ruby on Rails developers.


Calling Method / Incrementing Value

  • Please log in to reply
1 reply to this topic

#1 jcam



  • 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



  • Moderators
  • 497 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 | Work: Lokalebasen.dk

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users