AlexVangelov/sencha-touch-rails — Issue #2: getting 404 when using 'requires' on views
Author: tomz
Created: 2012-02-24 19:53:49+00:00
State: open

Hi Alex,

I am getting 404 error when I use 'requires' to include other files. I was trying to get this https://github.com/senchalearn/Tabs-and-Toolbars to work with your gem and Rails 3.2.1.

and here's one file that uses 'requires':

Ext.define('Sencha.view.Main', {
extend: 'Ext.TabPanel',
requires: [
'Sencha.view.Home',
'Sencha.view.Search',
'Sencha.view.Action',
'Sencha.view.Settings',
'Sencha.view.More'
],

config: {
tabBar: {
docked: 'bottom',
layout: {
pack: 'center'
}
},
items: [
{ xtype: 'homecard' },
{ xtype: 'searchcard' },
{ xtype: 'actioncard' },
{ xtype: 'settingscard' },
{ xtype: 'morecard' }
]
}
});

Thanks,
Tom