In Ruby on Rails, my current url has a query parameter of ?hello. Since the request.query_parameters hash will be {:hello=>nil}, how do I pass this ...
In Ruby on Rails, my current url has a query parameter of ?hello. Since the request.query_parameters hash will be {:hello=>nil}, how do I pass this ...
I have to access the id and other important information of each operator. The structure of given data is: Here I am not able to access the id of ea ...
I recently tried to update devise to the latest version specified in the gemfile without affecting its dependencies. gemfile.lock: After I run bun ...
I'm in the process of updating the hosting for a Rails 3.2 LTS project, taking them from ruby 2.3.3 to 2.7.2. As part of this I've updated a few gems ...
my application has custom error classes defined lib/error/* example this has been used in a ton of controller just by including it like I recen ...
I changed nothing in the configuration (no new gems or version changes); just one line of code, but I am now unable to push to heroku. Something must ...
I am new to rails , I have added a new column “control_id” in a table users and same is added in model file under attr_accessible :control_id But ...
I am working on a legacy Rails 3.2 app and would like to log everybody out and have their _app_session be reset with the secure flag set to true. It s ...
When comparing DateTimes, all objects being compared must be the same type. However, I have a data set that has nil dates. I want to treat these dates ...
I am deploying my Rails app to Digital Ocean. I need to run a custom ruby script via the Rails console (or even on a job queue) and in some cases I w ...
I want to share my rails code with my client in encoded form so he can not able to read the code.Is it possible in rails ...
Environment Ruby [1.9.3p547] Rails [3.2.22.5] Devise [3.0.4] When i run any rails or rake command for this application it is giving me belo ...
So i have done how to read a matrix from a text file where the first line defines the elements, however my question is how would i do the opposite tha ...
I have an admin page on my site that usually lists all appointments that users have scheduled when I use @appointments.each. I'm trying to figure out ...
So i have a requirement where i record a video and save it in the database, the recording of the video is working fine, only thing is it generates a b ...
I have an array of objects called posts and I have a comment in c1 as an array of comments by user Bob. Relationship between a post and comment is, a ...
Per the Rails 3.2 API Docs, to use different locales for number_to_currency, I need to do the following: I was expecting the following output: E ...
I create a flow chart in HTML and CSS, where I use the decision box from which two decisions have to be made. One is coming below but the sideline flo ...
I pulled new changes from git, in this new changes there is a migration file, now normally if I want to undo a migration i.e. remove a column say a ...
I have two user types Admin and Normal User I have the following departments Front Office (eg., id is 1) Back Office (eg., id is 2) Admin (eg ...