-
Notifications
You must be signed in to change notification settings - Fork 136
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
undefined method `smart_listing_update' #5
Comments
Hello, Are you sure following is included in your controller?
|
I'm including these lines in the Since I'm just trying it in a new app, it's not hassle to start over, so I'll go to do that tomorrow and watch carefully all my steps and see for sure if I'm not doing something wrong. I'm closing this issue for now until I got sure if it's me or not. If can't figure it out I'll post every step and the app to reproduce the error too. I'm in the latest Rails 4.1.1 by the way, if that matters. It's a wonderful gem and really handy I hope I can use it because I have a use case that it just fits... Thank you for this nice gem and keep up with the good work! |
So, I'm having a hard time trying to figure this out. I started from scratch and keeping having this error because of the I have this in the controller:
I did everything else like the instructions. I'm for sure missing something. If I remove the call for https://github.com/wsouto/smartlisting.git I just initialized a new Rails app with rails 4.0.5 (I tried also and first with 4.1.1) and follow the steps on README here on Github. Please, again, sorry if I'm doing something wrong but I just can't figure out... Any help will be thankfully apreciated and I'm really looking forward to use your gem. Thanks in advance. |
I looked at your code. First of all, add //= require smart_listingto your application.js and the most important, move index.js.erb from app/assets/javascripts to app/views/users. |
Thank you very much @tolhaje ! So the move of I'm aware of the Closing for good now. |
I was getting same error on my application, I know that this is due to my lack of information, but, also documentation requires you have a prior knowledge about how Rails handle AJAX requests and responses. And I should, of course. @wsouto I guess the reason why you need to move Am I right? |
@wkurosawa You probabilly are. I just didn't have a clue that we could put js files in the views folder since we have all that asset pipeline and specific folder for javascript files... A simple note in the docs telling newbies like me about where to put this particular file could've helped a lot. But it's a newbie way to think. The name of the file itself is a clue, right? |
I getting this error with this line in the
index.js.erb
file:<%= smart_listing_update(:persons) %>
I'm new to Rails and probaly misunderstood some point in the README. I just can't see what I'm doing wrong after go through instructions for some many times now. It might be the the helpers missing or something. I'm including the helpers in the
app/controllers/application_controller.rb
file.I'm sorry if it's not an issue. I'm on the 1.0.0 version.
The text was updated successfully, but these errors were encountered: