1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    11
    Vote Rating
    0
    empyrion is on a distinguished road

      0  

    Default Rest proxy adding a strange parameter

    Rest proxy adding a strange parameter


    Hi,

    I have a rails application and i am trying to load some data from it.
    I have this store which uses a model that just has some fields, nothing more.

    Code:
    Ext.define('MyStore', {
        extend: 'Ext.data.Store',
        requires: [
            'MyModel'
        ],
    
    
        config: {
            autoLoad: true,
            model: 'MyModel',
            proxy: {
                type: 'rest',
                enablePagingParams: false,
                noCache: false, 
                url: '/home/index',
                format: 'json',
                reader: {
                    type: 'json',
                    rootProperty: 'data',
                    record: 'model'
                }
            }
        }
    });
    When the store loads, it uses the json format but it also adds this parameters as i see it in the rails console:

    Code:
    Started GET "/home/index.json" for 127.0.0.1 at 2012-03-27 00:46:51 +0100
    Processing by HomeController#show as JSON
    Parameters: {"id"=>"index"}
    Obviously this makes rails route the request to the show action and not the index action.

    Any ideas why this happens?

    Thanks

    Manuel Silva

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    11
    Vote Rating
    0
    empyrion is on a distinguished road

      0  

    Default


    I managed to fix it.
    The url was wrong, it was only supposed to be /home and rails does the routing for you. eheh

    My bad

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."