jQuery/CSS bar percentage not working in rails app | Fixed issues |
- jQuery/CSS bar percentage not working in rails app
- Redmine + apache+ Passenger: Passenger still runs as nobody
- Can Active fedora connect to two solr instances at the same time?
- How do you add headers to a Net::Http::Post request in Ruby?
- What gem produces this output '\_ Called from:'
- Rails MaterializeCSS Passing User.id to Modal
- NVDA 508 Compliance - ROR
- Startup project with rails + polymer
- Scope active record based on association count
- Link to corresponding path in other locale (rails)
- undefined method `primary_key' for ProtocolProcess:Module
- Rails: Why is only one email sent to the last member of a loop?
- Unable to authenticate loggedin user based on session ROR - Refinery CMS
- Net::OpenTimeout (execution expired) exception on Sidekiq
- Rails 4 : how to runTCPserver connection in controller action
- How to use React Router on top of Rails router (not using react-rails gem)?
- Dealing with incoming data with aliases
- Elasticsearch issue: Cannot connect AWS elasticsearch service
- NameError in Admin::Recommandations#index
- How to iterate over an array with hash [duplicate]
- Local variable in Ruby on Rails is undefined
- Find closing tag missing that disables jQuery plug in | Rails 5 |?
- RAILS - issue with the recipient format in mailboxer / Array / String?
- Ideas on why when deployed on Heroku, value shows date whereas locally it is datetime?
- Rails 4 Error: Retrieving Params out of URL
- How do I take the input text from a html form and pass it to another form on the same page with Jquery?
- IE Session does not work in rails
- MailForm does not include a field from form when sending email
- Custom page-break in rails
- Error while start rails console libIlmImf.so.6: cannot open shared object file
jQuery/CSS bar percentage not working in rails app Posted: 14 Sep 2016 07:38 AM PDT I've forked a bar percentage, and it works well in codepen. When I paste the code snippet html/css/js into my rails app, it doesn't work. There's no animation, no data-percentage display. bar percentage not working in rails app Now, What should I do? Bar Percentage code snippets in codepen: |
Redmine + apache+ Passenger: Passenger still runs as nobody Posted: 14 Sep 2016 07:35 AM PDT I'm installing a new version of redmine under debiane8, i followed the steps here: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Debian_8_with_Apache2-Passenger i had some problems with passenger so i install it using: "gem install passenger" and "passenger-install-apache2-module". I added: PassengerDefaultUser www-data on the passenger confing file and on the appache config file as well. to avoid permission problems The problem is that passenger is still running as nobody result of top | grep "passenger" gives 3 process named PassengerAgent, 2 of them runs as root and one runs as nobody, what should i do to have the effect of the configuration i added. I have : Redmine version 3.3.0.stable Ruby version 2.1.5-p273 (2014-11-13) Rails version 4.2.6 |
Can Active fedora connect to two solr instances at the same time? Posted: 14 Sep 2016 07:35 AM PDT Can Active fedora connect to two solr instances ? If possible, how does the solr.yml look like? |
How do you add headers to a Net::Http::Post request in Ruby? Posted: 14 Sep 2016 07:30 AM PDT I'm using Rails 4.2.7. How do I add headers to a Net::HTTP::Post request? I tried However when I run this code I get the error Note I want to add the headers to the object before it is sent. |
What gem produces this output '\_ Called from:' Posted: 14 Sep 2016 07:36 AM PDT I started working on a existing rails project and in the rails server output there are these extra lines: Basically for each SQL query in my rails app it adds a line who called it. I can't seem to find it in the Gemfile as it has over a 150 gems. And it is not https://github.com/ruckus/active-record-query-trace |
Rails MaterializeCSS Passing User.id to Modal Posted: 14 Sep 2016 07:21 AM PDT As the title suggests, I've want to use MaterializeCSS Modal to show User data. The problem currently is that though each card has a trigger, All triggers show the same Modal. I'm assuming it's because no object data is being passed through. What is the best method for me to solve this problem? Thank you! $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); |
Posted: 14 Sep 2016 07:18 AM PDT I have an application built on Ruby on Rails. Anyone got any idea on how to make a web application NVDA 508 compliant. I have read different articles, but not getting exact information on steps needed to do this. Anyone done this before? Thanks in advance. |
Startup project with rails + polymer Posted: 14 Sep 2016 07:15 AM PDT I am using rails till now for fronted. but now i have to use polymer + rails. I already bundle emcee. but don't know how to use in application. Is there any start guide that help me to start with polymer + rails ( set-up + start-up guide ) Scenario: I have a polymer project all I just need is that how can I use that polymer project with rails and call the polymer page from rails as root. So is there any guide which help me to startup with project Thanks in advance. |
Scope active record based on association count Posted: 14 Sep 2016 07:32 AM PDT Two models, Users and Portfolios. Each user can have multiple portfolios and each portfolio can either be full or empty (boolean). How do I scope users based on the number of full and empty portfolios they have? I need it as a relation so I can't use select otherwise this would work (example for all users with more than one full portfolio and only one empty): |
Link to corresponding path in other locale (rails) Posted: 14 Sep 2016 07:12 AM PDT I have a multi-lingual application in Ruby on Rails 4. For that I use the following domains:
I want to be able to link to the corresponding path in another corresponding locale. For example if I am at www.exempel.se/denna-bloggpost I want to be able to easily link to (English/Spanish/French) to e.g. www.example.com/this-here-blog-post and es.example.com/este-posto-de-bloggo (sorry, can't speak Spanish :)). I understand this is done with It seems like How do I solve this? |
undefined method `primary_key' for ProtocolProcess:Module Posted: 14 Sep 2016 06:59 AM PDT I created a model
and I created a module in lib folder: and call the but the error is displayed: when I run the code in the rails console it works |
Rails: Why is only one email sent to the last member of a loop? Posted: 14 Sep 2016 06:45 AM PDT I am very much a rails novice! I am trying to write a method for a kind of on-line committee meeting. There are a fixed number(9) of users. When a user proposes a topic for discussion and/or voting the submit button needs to send an email to all members. in app/mailers/user_mailer.rb I have:- as part of app/controllers/topics_controller.rb I have:- and:- Please, why does the loop in user_mailer only send an email to the final person of the list. By incorporating "byebug" I have shown that it goes through all the user emails. |
Unable to authenticate loggedin user based on session ROR - Refinery CMS Posted: 14 Sep 2016 06:21 AM PDT I have installed refinery cms and need to add custom controller, currently I have added all my controllers and they are working fine as well. Basically, its admin controller that is other than refinery controllers whom I wants to authenticate if user is not logged in. so, if no user is logged into the site, it will redirect it to refinery/login page. I have admin controller whose code is like: My gem file: Some page code: And my link is something like: Simply, what I need to do is if some one directly access For all other controllers or pages the behavior is working fine but I want to fix it for these custom pages now. I have tried loads of codes and things regarding device or refinery authentications but all in vain. Here is my reference question on google group as well: https://groups.google.com/forum/#!topic/refinery-cms/yQ_OWIKxLdY |
Net::OpenTimeout (execution expired) exception on Sidekiq Posted: 14 Sep 2016 06:19 AM PDT I'm using sidekiq to to queue the emails my Rails application will send. Sending emails works in development, but in production sidekiq will get a network timeout error. What's going on? Here's my config in I have tried the following:
I'm on an Ubuntu 14.04 server and have set up my app using unicorn and nginx. I've been at this for days. :( Any help would be greatly appreciated! |
Rails 4 : how to runTCPserver connection in controller action Posted: 14 Sep 2016 06:03 AM PDT I am using ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] and Rails 4.2.4 on cloud9 IDE I am doing TCP socket programming using below files in cmd. it's working fine . now i want to run these code in controller action and view result in my application html page.is it possible ? how should i write Client.rb Server.rb require 'socket' NOTE: I am using colud9 IDE. which port number should i give if it is possbile to do in controller's action.my application running on port:8080 |
How to use React Router on top of Rails router (not using react-rails gem)? Posted: 14 Sep 2016 05:59 AM PDT Now i am making React app on top off Ruby on Rails app (with out react-rails gem) by using browserify-rails to compile js files. So i tried to us react-router to config router of the app This is my main.js But when i go to I got So how can i fix this and make React Router on top off Rails router? Thanks! |
Dealing with incoming data with aliases Posted: 14 Sep 2016 06:09 AM PDT Bit of a philosophical question this one: We deal with lots of data that comes in via different channels. We're parsing that data to try to make sense of it. e.g. When the data comes in the company names can vary a bit. e.g. These are all fundamentally the same company and we'd like to store them as such and automatically assign them (once we've identified an alias). The variations are down to the way that third parties store the data in their APIs, or on sites which we have no control over. What's a good way of identifying these aliases and then converting them to the appropriate company as they arrive? I've thought about adding another class as an association to Company that deals with aliases. Alternatively, adding a jsonb column to the table where we can keep an array of aliases, so that if any match we can bring them in. Just seems like there should be a good solution to this that I'm not finding. Anyone run into this type of issue and come up with something elegant and beautiful? |
Elasticsearch issue: Cannot connect AWS elasticsearch service Posted: 14 Sep 2016 05:24 AM PDT I have a issue about configure elasticsearch to connect AWS elasticsearch service to run project in production. My Gemfile: Reference: https://github.com/ankane/searchkick My config/initializers/elasticsearch.rb file: When I run "rake searchkick:reindex:all", it show error:
Anyone can help me! Thanks! |
NameError in Admin::Recommandations#index Posted: 14 Sep 2016 05:23 AM PDT I have multiple ressources on my ActiveAdin interface, one of them returns me an error when i go on the Index view "/admin/recommandations" with the following message : The recommendation functionality is simple : one user can rate an other user by making a recommendation. In my Recommandation model I have one user (the one who is rated) and a Writer (the one who write the recommendation). Recommandation model : I can access each of my Recommandation ressources with "/admin/recommandations/1" and there is a writer which is a user so I don't understand where the problem is. |
How to iterate over an array with hash [duplicate] Posted: 14 Sep 2016 05:26 AM PDT This question already has an answer here: How to iterate over an array with hash that has the position included? Could I remove it? I've never come across this before. When I POST this React: Controller: Console: Also Rails 5 says |
Local variable in Ruby on Rails is undefined Posted: 14 Sep 2016 07:01 AM PDT I am currently following a recipe box tutorial on youtube. When I open the rails console and say I got following error:
Does anybody has an idea what is wrong and how I can solve this problem? I am using the devise gem for my user model. |
Find closing tag missing that disables jQuery plug in | Rails 5 |? Posted: 14 Sep 2016 04:54 AM PDT I have a jQuery Raty plugin that's not working on my WebApp. The jQuery plugin worked when I added a partial with a missing closing tag: Partial: Closing tag missing in: which should be When I correct the closing tag on that Partial, the jQuery Raty Plugin is disabled again. I am going nuts trying to find the part of the code that's disabling my jQuery. Any ideas where to exactly look for it? Here's the commit with the code related to the jQuery plugin: https://github.com/jen-v/nameofapp/commit/07e9296981dbbe09a12b0214517ba84024c2d606 |
RAILS - issue with the recipient format in mailboxer / Array / String? Posted: 14 Sep 2016 06:47 AM PDT I am struggling with a form for mailboxer gem ( to send some messages within the app) I pass the recipient username though this link : That part is working fine, i got the NAME of the recipients in the URL Parameters.
then the form , the second part after the Else , is working too , but it pass 2 parameters Pseudo & Id, I dont really know how to do same for the first part. The first part is the one I need when i pass the parameters though the link. and here is the controller : |
Ideas on why when deployed on Heroku, value shows date whereas locally it is datetime? Posted: 14 Sep 2016 04:39 AM PDT I have a model When I display the value on a view. Locally they appear as datetime (e.g. which is 2016-09-13 23:25:00 +0100), whereas in Heroku they appear as date (e.g. 2016-09-14). I'm not sure what would be the most useful information to include but I have tried to set my timezone to London (my location). I'm not sure from a high level perspective where I should be looking to solve this problem and can't find anything on Google. Will edit question appropriately based on what additional information anyone thinks would be relevant. Any ideas of what could be causing the issue or requests for extra info would be appreciated! Thanks a lot!!!! |
Rails 4 Error: Retrieving Params out of URL Posted: 14 Sep 2016 05:33 AM PDT I am fairly new to rails and I am struggling getting the id param out of this url: My goal is to update certain values of a Job (Model) after it got created AND got paid via Stripe. Take a look at the Userflow for more details. Userflow:
(http://localhost:3000/jobs/new)
Problem: No matter which Job(id) got created, it always updates Job.find(1). The Form: Currently I am using this code to get it: (Subscriberjobs Controller) Any help on how to achieve what I am trying to do is much appreciated! |
Posted: 14 Sep 2016 07:36 AM PDT I'm new to JQuery and I'm trying to add a feature into my Rails application that takes an input from a html form and runs it through some erb on the same page. Here is what I have so far in jquery and html: Where is says "Film to be queried", I want to put the film variable element set in my jquery. I'm happy to do this a completely different way, so any suggestions are welcome! |
IE Session does not work in rails Posted: 14 Sep 2016 03:51 AM PDT I have a website with multiple subdomains : root domain detects the country of user and forwards to relevant sub-domain. It works in all major browsers but IE. Internet Explorer does not save any session unless I disable "Enhance Security mode" in setting. Its very troublesome for our customers to do it manually since Microsoft Edge has no direct option to do that unless switched to IE manually. I am not sure for the problems. I am using rails 3.2.11 and tried to set the domain: 'all' in my session initializer. That worked for IE but all other browsers got the session problem so I reverted that. Thanks in advance if Anybody can suggest a way to solve this problem |
MailForm does not include a field from form when sending email Posted: 14 Sep 2016 03:59 AM PDT I'm trying to set up MailForm to send emails in my Rails 4 app and I actually got it working except for one thing. For some reason it does not include the Here's how my If I add In MailForm docs example there's no validation for My And here's my html form: So, basically, I followed the examples in MailForm docs, but still couldn't get it working correctly. Could you help me to find out what I'm doing wrong? Update 1It seems like the problem is with params. Here's how |
Posted: 14 Sep 2016 06:00 AM PDT I have a ruby on rails application where in a particular view ,I have some data which is being represented in format of table . Now the user can take a print out of this page by press Ctrl+P . But some of my users asking to insert page break after particular sections in that table (some contiguous rows represent a particular section) .So that the table data will be printed section wise in separate pages. Please help me how do it. Thanks in advance. |
Error while start rails console libIlmImf.so.6: cannot open shared object file Posted: 14 Sep 2016 04:14 AM PDT I am trying to setup a rails project, after successfully bundle install when I try to run a rails c it gives me following error. I have installed "rmagick" but still gives me same error. I have also installed "openexr" as suggested in one of the SO post but didn't work for me. Any suggestions about how to fix this? |
You are subscribed to email updates from Newest questions tagged ruby-on-rails - Stack Overflow. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment