Config/boot.rb:19: undefined method `gem' for main:Object (NoMethodError)

Hi,
does anybody know, how to fix this error:
config/boot.rb:19: undefined method `gem' for main:Object (NoMethodError)

Did you create this application with an older 1.1.x version of rails, then running it with a newer 1.2.x rails? Maybe you have upgraded your rails. Check your current rails version with 'script/about'.
You can freeze the rails version for your application. See this article:
http://wiki.rubyonrails.org/rails/pages/EdgeRails

Similar Messages

  • [CS3] Method Generate for the object Index fails

    Hello,
    I will create an index in my VB script with InDesign CS3:
    Set objIndex = docindex.Generate(indIndexDoc.Pages.Item(1),p)
    The index is longer than one page.
    I think this is the reason, when I get this error:
    Runtime error -2147417851 (80010105)
    Method "Generate" for the object "Index" fails
    Thank you in advance!
    Harald

    I got this hint from Martin Fischer:
    The problem is a special character in the topics.
    Harald

  • 1180: Call to a possibly undefined method error for DEFINED method

    Hi,
    I have Document Class  main.Core  that in package main
    In the first frame of the .fla I have:
    stop();
    startGame();
    public function startGame():void {
           world = new World();
            world.startWorld();
    World is class in package world.
    I use import world.World;
    When I am tryng to export I get the error:
    1180: Call to a possibly undefined method startWorld.
    Can someone tell me why?
    Thanks.

    what's the following show:
    package world {
    import flash.display.MovieClip;
         public class World extends MovieClip {
              public function World():void {
    trace(this);         
              public function startWorld():void {
                   trace("b");

  • Undefined method callLater

    I'm getting the following error:
    1180: Call to a possibly undefined method callLater.
    for this function and am at a loss how to solve it.
    private function ch(event:Event):void{
    callLater(ChangeHandler,[event]);
    (The above code actually comes from the flex team itself from
    their Autocomplete demo.)
    I've tried import mx.core.UIComponent; and everything else I
    can think of.
    Can anyone help?

    What class does your class, the one in which function ch is a
    member, extend? It must extend a class where callLater is
    defined.

  • Ruby SAPRFC: undefined method pack

    Hi
    executing the following call
    rfc = SAP::Rfc.new(:ashost => "iwdf3018.wdf.sap.corp" , :sysnr => "50" ,:lang => "EN" , :client => "800" , :user => "++" , :passwd => "++" , :trace => "0" )
    iface = rfc.discover("BAPI_BUPA_ADDRESSES_GET")
    iface.BUSINESSPARTNER.value = "0000002036"
    rfc.call(iface)
    I am getting the following error:
    .../saprfc-0.35-mswin32/lib/SAP/rfc.rb:729:in `discover': undefined method `pack' for #<SAP::Rfc:0x2c8c8d8> (NoMethodError)
    from .../saprfc-0.35-mswin32/lib/SAP/rfc.rb:664:in `each'
    from .../saprfc-0.35-mswin32/lib/SAP/rfc.rb:664:in `discover'
    Am I missing a detail? What does it try to tell me? And how can I handle this issue?
    Regards,
    Stefan

    Hi -
    This is a bug- that has never been put to the test.  Can you change line 729 of Rfc.rb  which should look like this:
                default = pack("H*", default)
    to:
                default = [default].pack("H*")
    Cheers.

  • 1180: Call to a possibly undefined method BlueSquare.

    I keep get error mesage of what say 1180: call to possibly undefined method bluesquare what my object in the library
    some one please help.
    Here the tutorial i'm try do to learrn flash.
    here action script 3.0 code
    var myBlueSquare = new BlueSquare();
    trace(myBlueSquae);

    my class is this bluesquare in lower case letter no upper.

  • Ant tests: undefined method runWithFlexUnit4Runner?

    Hi all!
    I am trying to automate AIR tests that run successfully via Adobe Flash Builder 4.
    I get the following error:
      Error: Call to a possibly undefined method runWithFlexUnit4Runner through a reference with static type flexunit.flexui:FlexUnitTestRunnerUI.
        [mxmlc]
        [mxmlc]                 testRunner.runWithFlexUnit4Runner(currentRunTestSuite(), "unit_tests");
    when I run the tests from command line via: ant -v clean package.
    The part of the build.xml responsible for this is:
    <target name="test" depends="compile">
    <!-- Execute FlexUnit tests and publish reports -->
             <mxmlc
                file="${test.src.loc}/FlexUnitApplication.mxml"
                output="${bin.loc}/FlexUnitApplication.swf"
                actionscript-file-encoding="UTF-8"
                keep-generated-actionscript="true"
                incremental="false"
            >
               <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
               <source-path path-element="${FLEX_HOME}/frameworks"/>
               <compiler.source-path path-element="${test.src.loc}"/>
               <compiler.include-libraries dir="${lib.loc}" append="true">
                <include name="pb3dlib.swc" />
                <include name="airframework.swc" />
                <include name="airglobal.swc" />
                <include name="airspark.swc" />
                <include name="applicationupdater_ui3.swc" />
                <include name="automation_airspark.swc" />
                <include name="automation_spark.swc" />
                <include name="flexunit_0.9.swc" />
                <include name="flexunit-aircilistener-4.1.0.swc" />
                <include name="flexunit-cilistener-4.1.0.swc" />
                <include name="flexunit-core-flex-4.0.0.2-sdk3.5.0.12683.swc" />
                <include name="flexunit-core-flex-4.1.0.swc" />
                <include name="flexunit-uilistener-4.1.0.swc" />
                <include name="flexunitextended.swc" />
                <include name="hamcrest-1.0.2.swc" />
                <include name="spark.swc" />
                <include name="utilities.swc" />
                <include name="flexunit.swc" />
                <include name="FlexUnitOptional.swc" />
                <include name="FlexUnitTestRunner_rb.swc" />
               </compiler.include-libraries>
            </mxmlc>
    What swc do I need to include?
    Thanks,
    --Andreea

    Andreea,
    The actual tests created by Flash Builder are fine, it is really just the main application file they create. They don't ship the source, so modifying it is difficult.
    You can, however do something like this example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
          xmlns:mx="http://www.adobe.com/2006/mxml"
          creationComplete="runMe()" >
    <mx:Script>
      <![CDATA[
        import compilationSuite.SuitesToRun;
        import org.flexunit.listeners.CIListener;
        import org.flexunit.runner.FlexUnitCore;
        import org.flexunit.runner.notification.async.XMLListener;
        private var core:FlexUnitCore;
        public function runMe():void {
            core = new FlexUnitCore();
            //Put this line in if you want to write the XML to disk for use in reporting or a CI server
            core.addListener(new CIListener());
            //Leaving this one in allows you to see the results in Flash Builder as well if it is open
            //Else, it will just fail and go on. The name in the quotes below is your project name
            core.addListener(new XMLListener("unit_tests"));
            //Finally, pass what you want to run to the core.run() method. This could be the result of your currentRunTestSuite() from the
            //previous code you pasted
            core.run( compilationSuite.SuitesToRun );
    ]]>
    </mx:Script>
    </mx:Application>

  • Access of undefined method/property through reference with a static type Class

    I get the following error: (it's not word for word but you get the idea)
    Error: Access of undefined method getStatus through reference with a static type Class.
    Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
    so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function User()
                trace("User Created!");
                mainStatus = 0;
            public function setStatus(status:int):void
             mainStatus = status;
        public function getStatus():int
            return mainStatus;
    Ok, so far so good.
    now I created a new .fla file under the root of /flash_working/. The class file is in /com/mypackage/User.as
    in my .fla file I have:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = User.getStatus();
    trace(i);
    That's all the code I have. Could someone please explain why it's giving me that error?
    If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
    Error: Access of undefined property mainStatus through reference with a static type Class.
    Thanks for any help!
    jef3189

    the public getStatus() function that you created needs to be referred to through an instance of the class.
    So:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = myUser.getStatus();
    trace(i);
    Also, an aside. You can create a getter/setter for status, to avoid having to do the function as such.
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function get status():int
                return mainStatus;
            public function set status(value:int):void
                 mainStatus = value as int;
              public function User()
                trace("User Created!");
                mainStatus = 0;
    And then, you can call it as:
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.status);
    EDIT
    I just noticed that you made the variable public as well, which means you can access it without getter/setter or function.
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.mainStatus);

  • Call to a possibly undefined method setPropertyIsEnumerable?

    Hi,
      I am trying to accomplish using doubleClick events on dateChoosers. Below is the code that is working:
         <mx:VBox>
                  <mx:Label text="Simple DateChooser control."/>
                  <mx:DateChooser id="dateChooser1" doubleClickEnabled="true"
                      doubleClick="displayDate2()"
                      change="displayDate(DateChooser(event.target).selectedDate)"/>
                  <mx:Label id="selection"  color="blue" text="Date selected:"/>
              </mx:VBox>
      I tried putting in doubleClickEnabled as true in Actionscript, and then call the event, and this is the syntax I used:
         //enable the double Click Enabled Property
                        dch.setPropertyIsEnumerable("doubleClickEnabled",true);
                       dch.addEventListener("doubleClick", useDate2);
      This did not work, and I got this error instead: 1061: Call to a possibly undefined method setPropertyIsEnumerable through a reference with static type mx.controls:DateChooser.   
      I tried to find a suitable import statement to insert in my code, but I am not sure what to put there. Could anyone please give me a hint what to do here to get my code to accept the method?
    Thanks in advance.
    Alice

    Hi, Ryan:
      Thanks, I got that to work, but it seems like the doubleClick does not allow me to use it on the dateChooser. Here is the code:
        The MXML:
               <mx:VBox id="box2">
                <mx:DateChooser id="dch" doubleClickEnabled="true"
                      doubleClick="displayDate2()"
                      change="displayDate(DateChooser(event.target).selectedDate)"/>
             </mx:VBox>
        The same thing in Actionscript, but not working:
         dch = new DateChooser();
         dch.addEventListener("change", displayDate);
         dch.doubleClickEnabled = true;
        dch.addEventListener("doubleClick",displayDate2);
      //Got an error saying TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent@20112769 to     
      //mx.events.CalendarLayoutChangeEvent.
         box2.addChild(dch);
       Could you give me some pointers on what I have wrong here?
    Thanks for your help.
    Alice

  • Call to a possibly undefined method displays when using static function in Unit Test

    Hello!
    This has been driving me nuts. I am setting up unit tests for a static class which manages a collection of songs. This is how my unit test class looks:
    //START CODE
    package flexUnitTests {
              import com.myapp.managers.MusicManager;
              import flash.utils.Dictionary;
              import flexunit.framework.Assert;
              public class MyAppManagerTest {
                        [Before]
                        public function setUp():void {
                                  var songData:Dictionary = new Dictionary();
                                  songData["mn0012345"] = new Dictionary();
                                  songData["mn0012345"]["title"] = "All the Pretty Little Horses";
                                  songData["mn0012345"]["description"] = "by: American Traditional | Voice, Piano | 3 pages";
                                  MusicManager.setSongData(songData);
                        [Test]
                        public function test_getAuthorsBySKU():void {
                                  var expected:String = "American Traditional";
                                  var given:String = MusicManager.getAuthorsBySKU("mn0012345");
                                  Assert.assertEquals(expected, given);
    //END OF CODE
    You will notice two calls in red above. When I leave them in the code I see a variety of errors which look like this:
    "Call to a possibly undefined method '' through a reference with a static type com.myapp..."
    And
    "Access of possible undefined property '' through a reference with static type com.myapp..."
    Then, when I comment out the two lines in red above, these errors go away. Flash Builder seems really flakey to me. Often I notice that the error list varies, how can it just no longer be an error? Where did this new access error come from, in a no related part of the code, by adding or removing a function call to a static class which remains in the import statement.
    Note that the MusicManager contains no references to any of the UI mxml that is throwing these errors. It just simply loads data into a few globals and allows you to grab info.
    How is my usage of this function making foreign objects inaccessible?
    Please help!!! I am really hoping there is an answer but I have a bad feeling the answer is just that Flash Builder is flakey.

    I did some more work on the issue above. There are functions with in the MusicManager that call the UserManager to get a user's ID. When I comment out these calls then the access errors go away. Well the user manager has some calls back to mxml that tell the class that changes where made. My best guess is this is where it stems into the code that is randomly throwing errors. But, it compiles fine and runs fine on a device. Is there something with test cases which doesn't invoke the UI?

  • Undefined method error in custom package even with proper import

    I edited the title of this thread to be a little more descriptive about the help I need.
    The background: I have a multi-file Flash application that allows users to navigate through multiple pages (similar to a website). I realized yesterday that with each mouse click, I'm loading a page into memory, but not unloading it. After navigating through several pages, my memory really starts to take a hit. So, I want to define a custom package that loads each page and unloads the previous page.
    I've gotten as far as defining the pageLoad function, but I keep getting an error that doesn't make sense to me (unless I'm importing the wrong flash packages).
    When I test the Flash, I consistently get the following error:
    dtutils.as – 1180: Call to a possibly undefined method addChild. – addChild(pageLoader);
    Everything I have found indicates that to import the addChild method, I need to import flash.display.Sprite, which I'm doing, but I am still getting the error.
    You'll have to forgive me as I'm not extremely familiar with objects or actionscript. I'm more of a hacker, but I grasp things quickly and can build on what I've already learned. This might be obvious to others, but I can't find anything that indicates that I'm doing anything wrong with my code, so any help you can give is greatly appreciated!!
    My package code:
    package com.clientname.demo
        import flash.display.Sprite;
        import flash.display.Loader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        public class dtutils
            //Properties
            public var pageLoader:Loader = new Loader();
            public var pagePath:URLRequest;
            //Constructor
            public function loadPage(url:String)
                pagePath = new URLRequest(url);
                pageLoader.load(pagePath);
                addChild(pageLoader);
    I've also attempted to replace the four import lines in my package with the following 3 import lines, but I still get the same error message:
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    The code I'm using to import my package and call the function in my flash file is:
    import com.clientname.demo.dtutils;
    dtutils.loadPage("../filepath/filename.swf");
    I appreciate any help anyone can give me.

    Thanks for the feedback. Being fairly new with actionscript (and an object approach, in general), and not being a real developer, I often struggle with naming conventions. Didn't even realize there was a specific convention for what is considered a utility and what isn't. However, I appreciate your feedback and will rename my package so that it isn't confusing to any other real developers that may need to do something with this code in the future.
    Thanks!

  • Call to possibly undefined method addChild

    when i use addChild method in my class I got this message . Why it shows error "Call to possibly undefined method addChild"

    ok that is the reasoning, add that and the import for movieClip to your class..
    when you dont extend from any preexisting class.. object is used which does not contain an addChild method, therefore that method does not exist.
    import flash.display.MovieClip;
    extends MovieClip..
    add those two things to your class and try again.

  • Flex problem - undefined method

    Hello!
    I was following the tutorial posted at http://www.adobe.com/devnet/livecycle/articles/lcdses2_mdd_quickstart.html but I'm getting an error just after I add the form. 
    I'm getting the following error message: 
    "1061: Call to a possibly undefined method commitRequiredOn through a reference with static type mx.data:DataService. ProductForm.mxml /FiberTest/src/FiberTest/forms line 89 Flex Problem" 
    This is in the code for ProductForm.mxml, and the same goes for lines 171, 178, 184 and 191. 
    Could anybody help me here?
    Thanks!!
    Marcos

    Hi saisri2k2,
    I'm using Flash Builder 4 Standard, build 272416.
    Thank you!
    Marcos

  • 1180: Call to a possibly undefined method getDefinitionByName

    1180: Call to a possibly undefined method getDefinitionByName.   << i have this error
    i want to draw coins.
    so in library i have playerCoins100 and playerCoins200 movie clips with classes like name and base class: flash.display.MovieClip
    separated code:
    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                   //show points in user bag
                   var classNames:Array = ["playerCoins100", "playerCoins200"];
                   var boxesList:Array = [];
                   var ClassRef:Class;
                   for (var i:int = 0; i < classNames.length ; i++)
                        ClassRef = Class(getDefinitionByName(classNames[i]));
                        boxesList[i] = new ClassRef();
                        addChild(boxesList[i]);
                   var currentBox:MovieClip;
                   var numCol:int = 3;
                   for (var columnIterator:int = 0; columnIterator < boxesList.length; columnIterator++)
                        var column:int = columnIterator % numCol;
                        var row:int = int(columnIterator / numCol);
                        currentBox = boxesList[columnIterator];
                        currentBox.x = currentBox.width * column;
                        currentBox.y = currentBox.height * row;
                   //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    any ideas?

    how i can put this array to point with coordinate x=200 and y=300 ?
    need create mc and put elements to this mc? or how?

  • Call to a possibly undefined method asyncResponder

    Hi, why would I be getting this error for this code
                token.addResponder(Async.asyncResponder(this, new AsyncResponder(onResult, faultHandler), 600));
    1061: Call to a possibly undefined method asyncResponder through a reference with static type Class. 
    my imports look fine
    import flexunit.framework.Assert;
        import org.flexunit.async.Async;

    that method is only available in the flex version of flexunit. since it depends of an flex library class, it is not included in the actionscriptonly build

Maybe you are looking for

  • Connectivity issues - Bridge CC to Photoshop CC - Image Processor issues.

    Hi guys. I'm having issues with Image Processor between Bridge CC and Photoshop CC. I can see in the forums that others are having issues that are close to mine but not the same. I can still see my image processor tab in my Tools menu. The problem is

  • Is there a way to view the information of a deleted Purchase Order?

    Hi SAP Experts, Is there a transaction or program that could help me retrieve the information of a deleted purchase order? (Header and LI) Please take into consideration that the document can no longer be retrieved in SAP thru the regular t/codes. Th

  • Key board space bar stuck

    My new pre  owened 3GLG the space bar gets stuck and will not work 98% of the time?  Should I return it?

  • Can not sync because the apps can not be determined

    When I try to sync new photos from my laptop to my iPod touch, it tells me " iTunes cannot sync apps to the iPod "Jesyca's iPod" beacuse the apps installed on the iPod could not be determined." I have tried restoring my iPod but it will not let me do

  • Iphone 6 Plus audio sound is very low

    I am using 16 GB iphone 6 plus and i am facing audio problem.During phone call,sound is very low and i have to have on the speaker to listen audio properly.