Questions tagged [cloud9]

Cloud9 is a cloud-based development environment that combines an online code editor with a full Ubuntu workspace. Supports more than 40 languages including PHP, Ruby, Python, JavaScript, Go.

342 questions
0
votes
1 answer

Heroku 500 internal server error, TypeError (no implicit conversion of Symbol into Integer):

first time posting. Im trying to make mailgun send me an email for new subscribers but when i filled the form it gives me 500 internal server error and TypeError. Error log Completed 500 Internal Server Error in 13ms (ActiveRecord: 4.9ms) …
J.Mezart
  • 1
  • 1
0
votes
1 answer

Problems installing GeoIP using Cloud9 (Windows 10)

I'm trying to set up a cloud-based IDE (on a Windows machine) to test and update a Ruby project on GitHub. I'm struggled with installing all the required parts. 'bundle install' works to a point, then it fails here: checking for iconv_open() in…
huey
  • 115
  • 9
0
votes
1 answer

Connect to Java socket via hostname

Is it possible to connect to Java WebSocket through flash using server hostname, not IP? The reason is the specifications of Cloud9, they don't give any IPs, only hostnames. Tests showed that WebSocket gets requests to connect through browser, but…
0
votes
1 answer

Ace HTML Editor - Making resource internal

I've implemented the Ace Editor using the recommended CDN I've seen in their official documentation and it works great. However,…
Peter Buju
  • 177
  • 1
  • 8
0
votes
1 answer

I'm getting a NoMethodError and I'm not sure why

I'm creating a join table that will show me which employee sold which comic. When I type in my employee name It is giving me this error NoMethodError in Showemployeesales#employeesaleout undefined method `name_id' for nil:NilClass Here is my code…
0
votes
1 answer

Cloud9 + rails + Postgresql usage

I can not set up a Rails app using Postgresql for development on Cloud9 (c9.io): the migration does not succeed. Common error: ~/workspace (master) $ rake db:migrate rake aborted! PG::ConnectionBad: could not connect to server: Connection refused …
Yshmarov
  • 3,450
  • 1
  • 22
  • 41
0
votes
1 answer

File path for psql query on cloud9

My cloud9 workspace has a .csv file and a Ruby script in a folder called 'onetwo' Here's the Ruby script: require 'pg' def create_db conn = PG.connect(dbname: 'postgres') conn.exec("CREATE DATABASE onetwo") conn = PG.connect(dbname:…
flpoirier
  • 41
  • 4
0
votes
2 answers

Rails: param is missing or the value is empty: stock

I keep getting an error when i try to create a new item for a database that displays ActionController::ParameterMissing in StocksController#create param is missing or the value is empty: stock. It says the source is at private def stock_params …
Davidson
  • 33
  • 3
  • 8
0
votes
1 answer

I'm getting a undefined method error in Ruby on Rails and I'm not sure why

Basically I have 2 tables called Employees and Sales. I have a form where you input the Employee name and it should show you what phones they have sold. Every time I input the name I get this error undefined method `sales' for…
John Doe
  • 17
  • 4
0
votes
1 answer

How can I fix my selenium and geckodriver bug on Cloud9?

I want to fix my selenium and geckodriver bug on Cloud9 using capybara and launchy. When I tried to feature tests using Rspec, the errors occurred. The errors said that Failure/Error: visit root_path Selenium::WebDriver::Error::WebDriverError: …
0
votes
2 answers

Why do some invalid MIME types trigger a "TypeError," and other invalid MIME types bypass the error and trigger an unprompted download?

I'm making a fairly simple Express app with only a few routes. My question isn't about the app's functionality but about a strange bit of behavior of an Express route. When I start the server and use the /search/* route, or any route that takes in…
lift-it-luke
  • 407
  • 1
  • 6
  • 11
0
votes
1 answer

How to generate scaffold files using Rail's generate on Cloud9

I am creating a site that will sell phones and I have tables and products all set up. When I run: rails generate Scaffold Sale item_id:integer employee_id:integer I get a Ruby file called 'Sale' and 'Part.rb' in my app/models. I am not getting the…
John Doe
  • 17
  • 4
0
votes
1 answer

How do I rollback changes in Ruby on Rails?

I'm using Cloud9 and I'm fairly new at it and I wrote a "rails g Scaffold" statement and ran it but I forgot to make changes before that. Is there any way I can rollback any changes made today to a previous date? The last time I worked on this was 3…
John Doe
  • 17
  • 4
0
votes
1 answer

Devise Confirmation Email Not Being Sent

I am developing a Rails app on Cloud9, I am trying to do something pretty simple, which is to get the Devise confirmation emails to work. For some reason, they are not being sent. I'm using SendGrid for email functionality. I know that SendGrid is…
Daryl McCullough
  • 303
  • 5
  • 20
0
votes
0 answers

using carrierwave to download file raises undefined method `empty?' for nil:NilClass

This is my controller action to download a file. def download_file doc = Doc.find(params[:doc_id]) address = doc.file_name.file.path puts("ADDRESS: ") puts(doc.file_name.file.path) send_file(doc.file_name.file.path, …