Giter VIP home page Giter VIP logo

Comments (10)

joseramonc avatar joseramonc commented on July 30, 2024

I'm sorry, after reading about engines found out it was with main_app.mymodel

from rapidfire.

albertpak avatar albertpak commented on July 30, 2024

Im running into same issue...followed the guide and now im getting an error that undefined method new_user_session_path'`

found this thread on SO - http://stackoverflow.com/questions/19437830/rapidfire-gem-and-undefined-local-variable-or-method-when-loged-in-survey-creat - but by adding my_app to the paths that are causing errors, all styling and rest of the paths break...

any solution for this issue?

I'm using Ruby 2.1.3, Rails 3.2.21 and Rapidfire 2.0.0

from rapidfire.

iffyuva avatar iffyuva commented on July 30, 2024

do you have any example code which i can look at?

from rapidfire.

albertpak avatar albertpak commented on July 30, 2024

Error:

NameError at /
undefined local variable or method `new_user_session_path' for #<#<Class:0x007f83e6200ca8>:0x007f83e68ad128>

Code:

<li>
   <%= link_to('Login', new_user_session_path) %>
</li>

from rapidfire.

iffyuva avatar iffyuva commented on July 30, 2024

i guess you can use main_app.new_user_session_path

from rapidfire.

albertpak avatar albertpak commented on July 30, 2024

yeah, I've already tried that, after I add that to that link, then it tells me that another one and anther one, after i add 'main_app' to the links that are causing issues - i works, but when i go to localhost:3000/survey - all my styles are broken

from rapidfire.

iffyuva avatar iffyuva commented on July 30, 2024

is it possible to have a sample app to demonstrate this?

from rapidfire.

albertpak avatar albertpak commented on July 30, 2024

no, i can't dump whole app onto github's public repo

from rapidfire.

iffyuva avatar iffyuva commented on July 30, 2024

not the whole app, but if you can trim down code in order to reproduce this issue, it would be great.

from rapidfire.

albertpak avatar albertpak commented on July 30, 2024

I have roles, cancan and modded devise in it, not sure how to strip it down to replicate the error...

After looking at console errors...everything becomes relevant to the rapidfire's path...ie...

http://localhost:3000/rapidfire/assets/application.css?body=1

How do i prevent that from happening?

In my routes.rb, i have mount Rapidfire::Engine => "/rapidfire" as it is directed by the guide.

from rapidfire.

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.