[Rails] Re: RMagick Image text question

2015-11-01 Thread James Derryl
You can use this article on Image Manipulation to clear your query. This article may prove to be of your help. http://www.railscarma.com/blog/technical-articles/image-manipulation/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Re: Image Manipulation

2015-11-01 Thread James Derryl
Hi El-abid, Yes there are libraries and different methods to help you with image manipulation. We can achieve this by using ImageMagick. ImageMagick is a software suite to create, edit, compose, or convert bitmap images. We can use ImageMagick to re-size, flip, mirror, rotate, distort, shear an

Re: [Rails] Remove passwords from database.yml in rails 2.3.8 application?

2015-11-01 Thread Tamara Temple
Robert Nicholson writes: > We have a 2.3.8 application that has hard coded passwords in the database.yml > file. > > If we were to use erb to bring these in from a file outside where in the > initialization steps > do I load the file to populate the variable I wish to interpolate? > > When I t

[Rails] My program does not work after adding helpler

2015-11-01 Thread James Harold
I have just gotten to Chapter Four of Michael Hartl's Ruby on Rails Tutorial, and I can't seem to get the program to work after adding a helper to the program. Here is the code from the files. static_pages_controller_test.rb require 'test_helper' class StaticPagesControllerTest < ActionControl

[Rails] Remove passwords from database.yml in rails 2.3.8 application?

2015-11-01 Thread Robert Nicholson
We have a 2.3.8 application that has hard coded passwords in the database.yml file. If we were to use erb to bring these in from a file outside where in the initialization steps do I load the file to populate the variable I wish to interpolate? When I tried to do so in config/environment.rb the

[Rails] Re: meta modeling in ActiveRecord/ Rails

2015-11-01 Thread mark
Figured this out for nbow... You can do something like... model_class = create_arec @table do validates_presence_of :summary_reviews end model = Object.const_set(@table.classify, model_class) def create_arec(table_name, &block) klass = Class.new(ActiveRe

[Rails] [Help] Need help with first_or_create. Never finds existing Record

2015-11-01 Thread James Davis, PhD
Yeah the sql you posted will not work. First, find the record with @project = current_user.projects.where(id: params[:id]).first_or_initialize and then set the attributes as desired. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To u

[Rails] [Help] Need help with first_or_create. Never finds existing Record

2015-11-01 Thread James Davis, PhD
Yeah the sql you posted will not work. First, find the record with @project = current_user.projects.where(id: params[:id]).first_or_initialize and then update as desired. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe

[Rails] Re: any_login gem to help with development

2015-11-01 Thread Igor Kasyanchuk
https://github.com/igorkasyanchuk/rails_db Major update for RailsDB. Now you can use RailsDB as standalone app without adding to Gemfile. 0.7 - November 1, 2015 - added standalone app 'railsdb' - added util app 'runsql' - scroll page to Table Data if we have many tables and user click in

[Rails] smtp open timeout in devise

2015-11-01 Thread jaiksah1786
Net::OpenTimeout in Devise::RegistrationsController#create execution expired Extracted source (around line *#541*): 539 540 541 542 543 544 def tcp_socket(address, port) TCPSocket.open address, port -- You received this message because you are subscribed to the Google G

Re: [Rails] smtp open timeout in devise

2015-11-01 Thread Colin Law
On 1 November 2015 at 06:47, wrote: > Net::OpenTimeout in Devise::RegistrationsController#create > > execution expired > > def tcp_socket(address, port) > TCPSocket.open address, port The best way to get help is to ask a question. Colin -- You received this message because you are s