Comments (11)
Hi Maxim,
Could you please send the full trace for this error so that I can take a look at it.
Thanks
-- Chris
from localeapp.
Maxim, I've tried to reproduce this locally on Rails 3.1 and Ruby 1.9.3 but no luck. Can you also let us know what versions of Ruby and Rails you're running on, and on what platform.
from localeapp.
Thank you for your fast replay !
I have many forms in my app, but only this use the ClientSideValidation Plugin, also all forms that I use are based on simple_form_for
I'm running on a mac OS X Lion, with :
rails : Rails 3.1.1
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
So when I do
$ rails s
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-12-12 14:34:52] INFO WEBrick 1.3.1
[2011-12-12 14:34:52] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin11.2.0]
[2011-12-12 14:34:52] INFO WEBrick::HTTPServer#start: pid=2774 port=3000
Then I go to my page adults#registration
I get this in rails :
Illegal instruction: 4
And in Chrome it says that it was unable to load the page
The other developer which I'm working with, has some more info when he run in this problem
SystemStackError in AdultsController#registration
stack level too deep
Rails.root: /home/xubuntu/_www/admin-mela
Application Trace | Framework Trace | Full Trace
actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:73
from localeapp.
I also show you my form code
= simple_form_for @adult, :validate => true, :remote => true, :url => { :action => "registration_create" }, :html => {:class => "nice"} do |f|
= f.error_messages
%hr
%H4= t(:profil, :scope => :registration)
.row
.six.columns
= f.input :spirit_name, :input_html => {:class => "input-text"}
= f.input :firstname, :input_html => {:class => "input-text"}
= f.input :lastname, :input_html => {:class => "input-text"}
= f.input :email, :as => :email, :input_html => {:class => "input-text"}
.six.columns
= f.input :sex, :include_blank => false, :collection => {t(:male, :scope => :registration) => "m", t(:female, :scope => :registration) => "f"}
= f.input :birth_date, :as => :date, :start_year => Date.today.year - 110,
:end_year => Date.today.year - 18,
:order => [:day ,:month, :year]
= f.input :job, :input_html => {:class => "input-text"}
%hr
%H4= t(:adress, :scope => :registration)
.row
.six.columns
= f.input :numer_street, :input_html => {:class => "input-text small"}
= f.input :city, :input_html => {:class => "input-text"}
.six.columns
= f.input :street, :input_html => {:class => "input-text"}
= f.input :country, :as => :country
= f.input :post, :input_html => {:class => "input-text small"}
= f.hidden_field :languge, :value => locale
%hr
%H4= t(:service_kirtana_mela, :scope => :registration)
.row
.columns.three
= f.input :service, :label => t(:some_service, :scope => :registration), :as => :select, :collection => [I18n.t(:yes, :scope => :registration), I18n.t(:no, :scope => :registration)], :label_html => { :class => 'my_class' }, :class => 'my_class'
.columns.three
.manyhours
= f.input :servise_time, :label => t(:hours_service, :scope => :registration), :input_html => {:class => "input-text small", :value => '0'}
%hr
%H4= t(:tarif, :scope => :registration)
.row
.columns.four
= f.input :status_tariff_id, :include_blank => false, :collection => @tarifs.collect {|s| [s.name+" ("+s.tarif.to_s+" €)", s.id]}, :input_html => {:class => "input-text small"}
.columns.four
.certificate
= f.input :upload, :as => :file, :input_html => {:class => "file-form"}
.columns.four
%p.certificate
=t(:certificate_details, :scope => :registration)
%hr
%H4= t(:kids, :scope => :registration)
.row
.columns.twelve
%p
= t(:kids_details, :scope => :registration)
.row
.columns.twelve.listkids
= f.simple_fields_for :kids do |builder|
= render :partial => 'kid_fields', :locals => { :f => builder }
%p
#{link_to_add_fields(t(:add_kids, :scope => :registration), f, :kids).html_safe}
%hr
.row
.columns.twelve
%p
= t(:agree_form, :scope => :registration)
%p.center
= f.submit :class => "orange nice radius button", :value => t(:submit_form, :scope => :registration)
%span.loader
= image_tag("ajax-loader.gif")
from localeapp.
Still haven't been able to reproduce this :( Does the problem stop when you remove our gem?
from localeapp.
Yes when I remove the gem localeapp, my page work with the yml files generated by localeapp.
Le 14 déc. 2011 à 13:04, Chris [email protected] a écrit :
Still haven't been able to reproduce this :( Does the problem stop when you remove our gem?
Reply to this email directly or view it on GitHub:
#14 (comment)
from localeapp.
I don't know what to do.. I have finished my app, just need translation.
Very strange error and only on one page.
from localeapp.
Can you jump into our chatroom https://localeapp.campfirenow.com/d77b5 and we'll get to the bottom of this.
from localeapp.
Looking through the client_side_validations code, it seems to use a :scope parameter. I'm wondering if that's conflicting with how you're using t(:foo, :scope => :bar). One thing worth trying would be converting those to t('foo.bar') and seeing if that prevented the crash. This is just a guess though.
from localeapp.
I have tried again to reproduce this locally with no luck :( Earlier you said another developer got a slightly different error, stack level to deep, do they see a better full stack trace with that?
from localeapp.
Since there's no new information here, I'm closing this issue.
from localeapp.
Related Issues (20)
- Problem pushing new translations? HOT 10
- Translations not updating in daemon -b mode, puma requires restart to pick up new translations HOT 5
- Incompatible with Ruby 2.4: dependency on json gem ~>1.8 HOT 6
- Localeapp pull not working HOT 1
- Uninitialized constant Rails HOT 6
- `config.reloading_environments = []` not working
- `localeapp pull` sometimes takes forever to reflect added translations. HOT 16
- localeapp.com does not redirect to www.localeapp.com HOT 2
- Leave `.env` alone
- Pull add unwanted line to en.yml HOT 3
- Deprecation Warning in Rails 6 initialization HOT 2
- Remove (or update) wiki page HOT 1
- Option to specify which locales to poll HOT 1
- Selective key pull fails HOT 1
- Excluding certain translations from `localeapp push` HOT 8
- Add Webhooks
- Add option to remove keys not used anymore HOT 1
- ruby 3.0 / rails 6.1 incompatibility issue HOT 3
- Broken with I18n >= 1.9.0 HOT 3
- Use the original filename instead of the locale
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localeapp.