Skip to content

Loading…

Rails 3.1.0-wrong number of arguments (2 for 1) #3904

Closed
rainysun opened this Issue · 9 comments

4 participants

@rainysun

Started GET "/pp" for 125.118.53.138 at Thu Dec 08 17:51:41 +0800 2011
Processing by PpController#index as HTML
Rendered pp/index.html.erb within layouts/application (0.3ms)
Compiled application.css (2ms) (pid 19899)
Compiled pp.css (1ms) (pid 19899)
Completed 500 Internal Server Error in 17ms

ActionView::Template::Error (wrong number of arguments (2 for 1)):
2:
3:
4: Assets
5: <%= stylesheet_link_tag 'application'%>
6: <%= javascript_include_tag %>
7: <%= csrf_meta_tags %>
8:
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___1294348236_70219114938880'

Rendered /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
Rendered /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
Rendered /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.5ms)

@arunagw
Ruby on Rails member

Can you paste the log in better format using Github Markdown or use '''ruby tag to show your log?

@rainysun

it works on my MAC OS, but when i move to centos it breaks like that, and i'm sure i use the same config!

@arunagw
Ruby on Rails member

Can you paste some of the Environment details also. like Ruby/Rails version.

@rainysun

ruby 1.8.7 (2008-05-31 patchlevel 0) [x86_64-linux]

Rails 3.1.0

just the same as they are on MAC OS
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

Rails 3.1.0

the only difference between them might be the database(centos-mysql; mac-sqlite) and the Gemfile as i posted

@arunagw
Ruby on Rails member

Not sure about the error. Can we setup some sample application to reproduce the problem ??

@guilleiguaran
Ruby on Rails member

Please try with 3.1.3, we do a lot of fixes to asset pipeline since the release of Rails 3.1.0

@rainysun

i''ll give it a try, i've got nothing to do anyway...

@rohit

@rainysun Any updates regarding this issue? Was it solved? In that case can you please close this issue. :)

@rainysun

solved.

@rainysun rainysun closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.