Comments (10)
I'm sorry, after reading about engines found out it was with main_app.mymodel
from rapidfire.
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.
do you have any example code which i can look at?
from rapidfire.
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.
i guess you can use main_app.new_user_session_path
from rapidfire.
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.
is it possible to have a sample app to demonstrate this?
from rapidfire.
no, i can't dump whole app onto github's public repo
from rapidfire.
not the whole app, but if you can trim down code in order to reproduce this issue, it would be great.
from rapidfire.
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)
- Acts_as_surveyable? HOT 2
- API support HOT 4
- after attempt redirect HOT 1
- Question text as a label HOT 1
- Feature Request: Images as part of the question HOT 1
- Rails 5.1: Directly inheriting from ActiveRecord::Migration is not supported HOT 1
- Rails 5.1: Index Creation fails HOT 3
- undefined local variable or method `rapidfire' for #<Rapidfire::QuestionsController:0x0....> HOT 1
- When using checkboxes, validation always fails HOT 6
- undefined method `before_filter' for Rapidfire::SurveysController:Class Did you mean? before_action HOT 2
- ActionController::UrlGenerationError in Rapidfire::Surveys#index HOT 1
- Bundler could not find compatible versions for gem "active_model_serializers" HOT 2
- One attempt for each user
- Links for Rapidfire redirect with bad link HOT 1
- Change `after_survey_content` to `thank_you` HOT 1
- Rename locales to include rapidfire prefix HOT 1
- answers_delimiter = "\r\n" HOT 3
- undefined method `page' for Survey:Module HOT 1
- Non logged in users not able to submit responses
- Path issues HOT 4
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 rapidfire.