Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Wrong number of arguments #21

Open
tispratik opened this issue Feb 10, 2016 · 8 comments
Open

Error: Wrong number of arguments #21

tispratik opened this issue Feb 10, 2016 · 8 comments

Comments

@tispratik
Copy link

When i upgrade from masonry-rails 0.2.1 to 0.2.3 or 0.2.4, i get the following error on rails 4.0.13

ActionView::Template::Error (wrong number of arguments (2 for 1)
  (in /Users/pkhadloya/Personal/topmunch/app/assets/stylesheets/foundation_and_overrides.scss)):
    4:     %meta(name="viewport" content="width=device-width, initial-scale=1.0")
    5:     %title= yield :title
    6:     %meta(name="description" content="#{ yield :meta_description }") <!-- Should be around 150-160 chars -->
    7:     = stylesheet_link_tag "application", media: "all"
    8:     = javascript_include_tag "modernizr-assets"
    9:     = csrf_meta_tags

It gives me the same error until i remove many css files. Seems like masony-rails 0.2.4 has some things which conflict with existing css files?

@kristianmandrup
Copy link
Owner

I'm no longer maintaining it. I have no idea how the asset pipeline works in Rails 4 and beyond. Feel free to make a pull request for a fix or even take over this project as you see fit...

@Judahmeek
Copy link
Collaborator

@kristianmandrup, how would I go about taking over this project?

@kristianmandrup
Copy link
Owner

kristianmandrup commented May 25, 2016

Just added @Judahmeek as collaborator ;)

@Judahmeek
Copy link
Collaborator

Thanks, @kristianmandrup. I'll send you an email to your Gmail account within a couple hours to make sure we're on the same page.

@kristianmandrup
Copy link
Owner

Okay

@SakoMe
Copy link

SakoMe commented May 31, 2016

Would anyone be able to tell me why when the page first loads or I refresh it works fine. But when when I go from lets say the "show.html.erb" page back to the "index.html.erb" (set to root) via clicking the logo the images stack up on top of each other and the masonry effect is lost. If I refresh the page all is well again... Thanks

@Judahmeek
Copy link
Collaborator

Judahmeek commented Jun 1, 2016

@SakoMe What browser are you using? According to Google, firefox (and likely Safari as well) do not trigger document.ready when using the back button: http://stackoverflow.com/questions/15791148/startup-javascript-code-is-not-executed-when-using-the-firefox-back-button

@kristianmandrup Please let me know if you have not received my email (sent approx 6 days ago).

@SakoMe
Copy link

SakoMe commented Jun 1, 2016

@Judahmeek Thanks for getting back to me! I figured out a solution. The easies solution was simply adding the jquery-turbolinks gem...

Kindest regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants