» Home » rails » Page 2
Huge memory leak / bloat after Upgrading from Rails 3.0 to Rails 3.2 (Ruby 1.9.3 + Passenger)
by gqlewis in Programming Languages

Last week we upgraded a small project which was running on Rails 3.0.1 to Rails 3.2.2.

Shortly after the upgrade we recognized that occasionally, 2-3 times a day, we're seening a huge Phusion Passenger process (1-5 GB).

We're running Phusion Passenger 3.0.11 and Ruby 1.9.3-p0. We already tried different Ruby version (1.9.2-p290 and 1.9.3-p125) without a success.

Ruby on Rails: Error while using validation_reflection on Rails 3.2 model - Formtastic cannot display errors
by ti22 in Programming Languages

I am successfully using formtastic to display my new/edit views for my models.

The railscast on formtastic talks about installing a plugin 'validation_reflection'. Since this railscast is fairly old, I was wary of installing the plugin. I found the validation_reflection gem, installed it. When I access a model I am getting:

undefined method `write_inheritable_array'

Ember.js + Leaflet + rails ( creating a rails app with a Javascript MVC and opens source maps)
by Itchrelief in Javascript

Im a rails newbie (6 months with a few apps). Im also a Javascript newbie. I taught myself rails now Im teaching myself a Javascript framework. I've analyzed all the frameworks and have settled on learning "ember.js".

I need to also use a maps library in my app. I have used Google maps in the past but this is not an option anymore because of Google's liscencing and other issues.

How to write generic code the Rails way for superclass object in Rails partial view?
by Londo_Jowo in Programming Languages

My app manages ProjElements, which are subclassed into:

... etc

For a given ProjElement's show.html.erb, you can comment on that project element instance (e.g. you can add a comment on Milestone XYZ or Decision ABC). Like t

Rails: Using Bootstrap Input Style to Replace the built-in form_for method in Rails
by Italy in Web Design

I am trying to use Bootstrap forms in Rails. But after inspecting the _form partial created by my post scaffold, I'm not quite sure how I can edit the variables with regular input methods.

For example, this is the built-in form code:

<%= form_for(@post) do |f| %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_fiel

Rails 3.2 not using bundled gems, Capistrano needs sudo gem install and rbenv not finding rails
by Andrew in Development Tools & Services

I have 2 Rails 3.2.11 apps running on an Ubuntu 12.04 server with Nginx, Unicorn and Postgresql. Deployment is by git and capistrano.

After I installed the second app I found that Capistrano would fail during cap deploy because it "could not find a gem source" and I needed to install each missing gem using sudo. After this, cap deploy worked fine and so did the apps. Running bundl

Rails: Setting class and data-tag of an HTML attribute with a single rails method
by ElFenix in Web Design

I'm currently working on a tour interface that guides new users around my site. I have a Tour model that has many TourStops, each of which contains information about a section of the site.

Basically, I'd like to write a function for the Tour model that -- when passed the number of a TourStop -- generates the correct class and data attribute for the HTML element it's attatched to. Fo

Patterns to make JRuby On Rails applications suitable for both Rails and Java developers
by StereoPixel in Java

My team consists of Rails and Java developers working together on the JRuby On Rails application. Rails people prefer to develop the front-end application using the pure Ruby interpreter. Java people deploy application to the Tomcat and integrates it with Spring and core Java back-end services.

We recognize which version of Ruby is executing the project to allow the Rails fellows to

Rails 3's “bundle install” is super fast (takes 1 second), but no Rails is there afterwards? (using rvm)
by Jaleel in Programming Languages

I am using rvm, doing the following:

rvm install ree <--- (Ruby Enterprise Edition), or this can be 1.8.7 or 1.9.2
rvm ree
rvm gemset create 'proj'
cd path/to/proj
bundle install

so Gemfile in that project says:

gem 'rails', '3.0.0'

and bundle install is super fast, reporting

Issuing Ruby on Rails commands without the command line in Windows (Instant Rails)
by RKelln in Programming Languages

I'm working on a public computer where access to the cmd is restricted, i.e., I cannot access it at all.

How do issue commands such as "rails", "rake", or even install gems among other options I'd normally use the command line for with the cmd?

Prev          Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .