• Register

Recent questions tagged ruby-on-rails

0 votes
1 answer 5 views
Problem: Hello Kodlogs, I need someone to help me out here. I tried reading a property from an object but I got this errorr: undefined method `[]' for nil:nilclass why am I getting the error and how can I solve this?
asked 5 days ago Festus James 380 points
0 votes
1 answer 6 views
Problem: typeerror: no implicit conversion of symbol into integer.
asked 6 days ago Dan phillip 1.9k points
0 votes
1 answer 5 views
Problem: getaddrinfo: nodename nor servname provided, or not known.
asked 6 days ago Dan phillip 1.9k points
0 votes
1 answer 7 views
Problem : Curl : Protocol https not supported or disabled in libcurl
asked Feb 23 Shovo210 3.1k points
0 votes
1 answer 13 views
Problem: when assigning attributes, you must pass a hash as an argument.
asked Feb 21 charles mathews 3.8k points
0 votes
1 answer 5 views
Problem: no ransack::search object was provided to search_form_for!
asked Feb 20 charles mathews 3.8k points
0 votes
1 answer 23 views
Problem: Hello Kodlogs, I was working on an app I want to deploy for use within my business but I was faced with a hosting issue so I decided to fix it with Heroku using a custom domain and I got this error: installing doc 3.12.2 installing pg 0.15.1 an ... failed to install gems via bundler. ! ! detected sqlite3 gem which is not supported on heroku. ! ! push rejected, failed to compile ruby app
asked Jan 14 Festus James 380 points
0 votes
1 answer 37 views
Problem: Hello Kodlogs, I encountered a strange issue where vagrant works fine for a while and it completely stops working unexpectedly. Afterward, any of the vagrant commands I run just give me this error: "exec error: exec: "ruby": executable file not found in %PATH%"
asked Dec 29, 2020 Festus James 380 points
0 votes
1 answer 32 views
Problem: Hello Kodlogs, I tried installing Ruby with rbenv. I used homebrew to install rbenv ~ $ brew install rbenv That process was successful. Then I proceeded to install the ruby version of 2.6.1 in rbenv but it kept hanging on the following line. ~ $ rbenv install 2.6. ... .tar.bz2 Installing ruby-2.6.1... ruby-build: use readline from homebrew I think it's stuck, can someone help me fix this?
asked Dec 29, 2020 Festus James 380 points
0 votes
1 answer 18 views
Problem: Hello Kodlogs, I tried running this command on my app $ Heroku run bash ~$ rails c But it didn't come out well as this error was displayed Could not find rake-12.0.0 in any of the sources Run bundle installs to install missing gems.
asked Dec 27, 2020 Festus James 380 points
0 votes
1 answer 14 views
Problem: t looks like I have a circular issue regarding Ruby over Rails migration procedure. I am following the online available article and now reached the point where I need to modify my very first table. I ran the following, [tims@web2 working_ror]# rails generate model ... was to drop and rebuild everything below. rake db: drop rake db: create rake db: distant and the conclusions are all same.
asked Dec 1, 2020 sasha 13.2k points
0 votes
1 answer 26 views
Problem: I was working on creating a registration form and here is my view file <%= form_for @user do |f| %> <fieldset> <legend>Registration</legend> <div class="reg_form"> <label for="first_name">First Name</label> <%= f.text_field :first_name %> </div> <div ... on the server, I get an error The first argument on the form cannot contain nil or be empty on line 1 Any help is appreciated! thanks
asked Dec 1, 2020 sasha 13.2k points
0 votes
1 answer 59 views
Problem: Hello Kodlogs, Playing my way around with this code contact_list = [ {"name" => "jack", "phone_number" => "6789"}, {"name" => "Tracy", "phone_number" => "2345"} ] contact_list.each do |contact| puts "Contact: #{contact_list["name"]} and ... : #{contact_list["phone_number"]}" end It returns: no implicit conversion of String into Integer (TypeError) How do I correct this I'm confused?
asked Nov 8, 2020 Festus James 380 points
0 votes
1 answer 41 views
Problem: Hello Kodlogs, I tried hashing two columns in on CSV file and then save the hashed column in another CSV file. But I got this error: stack level too deep (systemstackerror) I think there is something wrong with how I input my array code. Why am I getting such an error and can you help me out?
asked Nov 5, 2020 Festus James 380 points
0 votes
1 answer 35 views
Problem: Hello Kodlogs, I am working on a program that runs more on control expressions and I got a surprised error of this nature: syntax error, unexpected end-of-input, expecting keyword_end Can you help me out?
asked Nov 4, 2020 Festus James 380 points
0 votes
1 answer 65 views
Problem: Hello Kodlogs, I tried pushing my app and I got an error message of this nature; you must use bundler 2 or greater with this lockfile. What can I do to correct this?
asked Nov 2, 2020 Festus James 380 points
0 votes
1 answer 43 views
Problem: Hello Kodlogs, I've been working on a project in Ruby so I tried creating an authentication but I got this 'cannot load such file -- bcrypt'. What can I do?
asked Oct 31, 2020 Festus James 380 points
0 votes
1 answer 27 views
Problem: Hello Kodlogs, I need someone to help me out here. I keep getting an 'invalid byte sequence in utf-8' error while running a code in ruby.
asked Oct 28, 2020 Festus James 380 points
0 votes
1 answer 39 views
Problem: I encountered the 'cannot load such file -- bcrypt_ext' error while running my rails command. What could be the problem and how can I solve it?
asked Oct 27, 2020 Festus James 380 points
0 votes
2 answers 40 views