Thoughts, information and reflections about technology


Software, Operating Systems, Programming Languages, Web Platforms.

1 2 3 6

Using Always Up to run Ruby on Rails Puma Servers as a service on Microsoft IIS servers.

When I first began Ruby on Rails development, I was not able to use a LAMP stack. I was limited to working with the existing Microsoft IIS server.

 I chose Puma as the Rails production server for the applications. The problem was that if the IIS server was restarted, which happened often, the individual applications would need to be manually restarted. This simply was not acceptable.
Continue reading No tags for this post.

Parenthesis in a Rails radio_button_tag was preventing onclick javascript from working.

I was working with some existing code where I needed to add an onclick javascript event.

I couldn’t even get an alert box to work. After a good bit of trial and error, I found the reason. I put in a line of radio button code from the www3 school’s try it and it worked. After closer inspection, I found that the original radio button had parenthesis.

Continue reading No tags for this post.

Showing the file name before committing to an upload of a CSV file in Ruby on Rails

I was working with a Rails App where the user would select a category for an upload and then upload the CSV file. I wanted to show the user which category they selected along with the file they are attempting to upload.

This, of course, had to be done outside of Rails with Javascript/jQuery.

Continue reading No tags for this post.

Running Rails Console in production while using Spring

This one drove me nuts for a couple of hours. I needed to modify the contents of the user table in a rails app using rails console.

After a bit of trying it seemed that I was running the rails console in development mode. So, I tried the obvious rails console production.   After checking the tables, I found I was still in the development mode.

Continue reading No tags for this post.
1 2 3 6
Contact me
Recent Comments