ruby-on-rails Questions
5
Solved
In my Rails project I have different types of users one of which has the user_status :admin, which has full rights to edit content unlike the rest of the users. For obvious reasons I want to add ad...
Cryptomeria asked 9/3, 2015 at 10:58
8
Solved
Currently in my tests I do something like this to test if an email is queued to be sent
assert_difference('ActionMailer::Base.deliveries.size', 1) do
get :create_from_spreedly, {:user_id => ...
Rolf asked 14/1, 2010 at 10:30
3
Solved
In Rails, I'm attempting to implement a controller action which will allow a customer to change the plan they are subscribed to. Per the Stripe documentation, this can be done as follows:
customer...
Externalize asked 15/12, 2014 at 20:31
8
Solved
I'm building a Rails project on postgresql, but when I
rake db:migrate
I get the following error:
permission denied to create extension "uuid-ossp"
Here's how my database.yml looks like:
ap...
Pamphleteer asked 3/3, 2014 at 0:43
16
Solved
It seems many others have had problems installing the pg gem. None of the solutions posed for others have worked for me.
I have tried to install the pg gem and postgres.app. The pg gem won't inst...
Baku asked 9/10, 2013 at 2:59
7
Solved
I'm trying to setup my VPS (CentOS 6.4) with ruby on rails and postgres.
I installed ruby (2.1.0p0), rails (4.1.0), and postgresql (9.3.4) with no problem.
When I try create new rails app (rails ...
Unbeliever asked 25/4, 2014 at 20:3
2
I'd like to use Rails as a backend to a mobile app (Android and maybe iOS), and one of the requirements is file upload.
I haven't been able to find any resources on using Activestorage with direct...
Machination asked 6/4, 2018 at 9:0
3
I was having some issues getting the mysql2 gem to install on my Windows 8.1 machine. I followed the instructions in this post:
Ruby MYSQL2 gem installation on windows 7
to install the mysql2...
Deviant asked 14/1, 2014 at 23:35
11
Solved
I have some URLs, like
http://www.example.com/something?param1=value1&param2=value2&param3=value3
and I would like to extract the parameters from these URLs and get them in a Hash. Obvio...
Rosado asked 23/3, 2010 at 14:0
6
Solved
Can rails handle creating a view without a controller? For example, let say I have a page that just links to other pages, would I need to create a dummy controller for that, or could I just do some...
Toxemia asked 29/8, 2009 at 21:25
11
Solved
Issue: Can not stop docker containers, whenever I try to stop containers I get the following Error message,
ERROR: for yattyadocker_web_1 cannot stop container: 1f04148910c5bac38983e6beb3f6da4c8be...
Lop asked 10/11, 2017 at 12:55
5
I recently installed OSX and Ubuntu on different computers. I then attempted to install redis and foreman for both OS's. Both errors threw no flags, and seemed to execute successfully. However, whe...
Stegodon asked 12/6, 2014 at 6:8
6
Solved
I am trying to install mysql2 (version 0.4.5) and I am using Rails 5.0.2, Ruby 2.3.1
I've already installed mysql server using homebrew (version 8.0.11)and started mysql as:
brew install mysql
b...
Kellner asked 18/6, 2018 at 12:48
10
I am trying to run a bundler install on vscode for windows, but every time I do, I keep getting the same message:
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
U...
Panther asked 18/7, 2020 at 5:38
6
Solved
I am in an older Rails project that has a Gemfile. I tried to add a gem to the Gemfile and bundle install but got an error:
Bundler could not find compatible versions for gem "bundler":
In Gemfil...
Tearoom asked 23/8, 2012 at 13:38
6
Solved
How can I internationalize say a categories table (with a name column) into different languages. How about a products table (consisting of a name and description columns). Which is the best way to ...
Ophidian asked 2/10, 2009 at 6:44
2
Solved
I have a Page model containing many Section models which is associated with a SectionRevision through current_revision. From the Page model I am trying to select all Sections where the current_revi...
Colligate asked 6/4, 2013 at 5:24
5
Solved
I am building a Rails-API using Omniauth-facebook and Devise-token-auth with Angular and ng-token-auth for the frontend.
However when logging in with facebook I am presented with the error:
undefi...
Bufflehead asked 5/10, 2016 at 17:10
5
Solved
I have a controller based on MHartl's RoR4 Tutorial
And just like MHartl, I'm not using Devise, I rolled my own authentication system
Having trouble with the RSpec for UsersController#Edit since ...
Dyer asked 2/7, 2014 at 3:13
4
Solved
I'd like to know the "proper" way to approach adding a relation between two existing classes in Rails 3.
Given existing models: Clown & Rabbit
I'd like to add a reference (belongs_to) from Ra...
Casino asked 2/12, 2010 at 19:28
6
rails g model Rating user_id:integer message:string value:integer
How can I completely remove this model? Thanks
Injection asked 18/8, 2011 at 9:41
11
How do we pass parameters in redirect_to in rails?
I know we can pass id using this:
redirect_to :action => action_name,:id => 3
If I want to pass additional parameters like some form data...
Celestyn asked 16/9, 2009 at 0:2
6
Solved
Before migrating to rails 5 it was working nicely, but when I migrated to rails 5.1.1 it is giving me error like
ActiveSupport::MessageVerifier::InvalidSignature:
ActiveSupport::MessageVerifie...
Centeno asked 3/11, 2017 at 13:17
8
I am trying to install create a new app in Ruby on Rails and I cannot get passed this error:
$ gem install pg
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /...
Ocampo asked 27/6, 2017 at 1:5
12
Solved
I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is working.
I found answer for NOAUTH Authentication required error ...
Ebon asked 6/12, 2015 at 7:48
© 2022 - 2024 — McMap. All rights reserved.