Code Monkey home page Code Monkey logo

Comments (11)

tigrish avatar tigrish commented on June 14, 2024

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.

chrismcg avatar chrismcg commented on June 14, 2024

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.

 avatar commented on June 14, 2024

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.

 avatar commented on June 14, 2024

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.

chrismcg avatar chrismcg commented on June 14, 2024

Still haven't been able to reproduce this :( Does the problem stop when you remove our gem?

from localeapp.

 avatar commented on June 14, 2024

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.

 avatar commented on June 14, 2024

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.

chrismcg avatar chrismcg commented on June 14, 2024

Can you jump into our chatroom https://localeapp.campfirenow.com/d77b5 and we'll get to the bottom of this.

from localeapp.

chrismcg avatar chrismcg commented on June 14, 2024

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.

chrismcg avatar chrismcg commented on June 14, 2024

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.

tigrish avatar tigrish commented on June 14, 2024

Since there's no new information here, I'm closing this issue.

from localeapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.