[Rails] Re: GUI tool for model design?

2011-03-17 Thread Oto Brglez
Hi! I'm using SQLEditor (http://www.malcolmhardie.com/sqleditor/) (for Mac!). You can draw models(tables) and you get nice schema that you can use in your project. - Oto On 16 mar., 22:13, Philip Hallstrom phi...@pjkh.com wrote: Anyone know of one? If you're staying at the

[Rails] Re: Linear performance degradation with Active Record and NoMethodError

2011-03-17 Thread Frederick Cheung
On Mar 16, 6:31 pm, Mattias Amnefelt matti...@plero.se wrote: I can replicate this in all released versions rails3 using the test case below. I've tested it using both ruby 1.8.7 and 1.9.2. This is also a new behavior in rails 3 and I cannot replicate it with rails 2.3.11. What I can see

Re: [Rails] GUI tool for model design?

2011-03-17 Thread Michael Pavling
On 16 March 2011 17:19, KevinC kevinch...@gmail.com wrote: Anyone know of one? I tend to start with pen+paper, then when my models get too complicated to redraw/remember I use Railroad to generate a nice PNG, which I can then print and scribble on to design changes. Railroad also generates SVGs

Re: [Rails] First timer , needs help in passing parameter

2011-03-17 Thread Colin Law
On 17 March 2011 02:42, Bryan Crossland bacrossl...@gmail.com wrote: On Wed, Mar 16, 2011 at 4:41 PM, newguy aimanparv...@gmail.com wrote: Hi guys this is my first project with ROR, I have a action in controller and it takes two parameters, these parameters are to be entered by the user

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Frederick Cheung
On Mar 16, 11:24 pm, Manny 777 li...@ruby-forum.com wrote: Hi there,  I'm solving the problem about the plugin Magick. In my app in Gemfile I've follwoing: require 'rubygems' require 'mongo' require 'RMagick'  include Magick That looks like an odd to thing to have in your Gemfile. Your

[Rails] Validation doesnt work :(

2011-03-17 Thread huh
I have problem.. i have scaffold question with text field named Q... i have model answer with question_id and answer fields. i have relations - question has_many :answers, answer - belongs_to :question.. Ok.. I validate question - validates_presence_of :q ... everything works..I can leave question

[Rails] model with no primary key

2011-03-17 Thread tonypm
Hi, I have looked around quite a bit, and haven't found any workable solution to this. I am accessing an external/remote database from my rails app, in order to update a categories table. I cannot change the table structure of the remote database. it has a categories table with an id field

Re: [Rails] Re: How to Parse Microsoft Word Document

2011-03-17 Thread Walter McGinnis
I'm coming to this late and I've partially deleted the thread, so I may be way off base... An old plugin might be of help: https://github.com/kete/convert_attachment_to It makes use of existing command line converter utility programs. Cheers, Walter On Mar 17, 2011, at 5:54 PM, Hafiz

Re: [Rails] Get started with Ruby

2011-03-17 Thread Chris Kottom
If you want to get rolling quickly, check out http://railsinstaller.org/ from Engine Yard. On Wed, Mar 16, 2011 at 4:58 PM, mark goldin markzolo...@gmail.com wrote: I would like to start learning ROR for server-side web development. My front-end is Adobe Flex. What is a development environment

[Rails] Re: open source newsletter software?

2011-03-17 Thread Anny Php
Newsletter software is an easy to communicate with your customers and friends. Email marketing software is very cost effective. It allows you to reach thousands of potentional or returing customers for virtually . Build a close relationship with your customers and see the effort of your email

Re: [Rails] Re: open source newsletter software?

2011-03-17 Thread Michael Pavling
On 17 March 2011 09:58, Anny Php li...@ruby-forum.com wrote: Newsletter software is an easy to communicate with your customers and friends What's your Rails question or comment? Or was your post just spam? -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Get started with Ruby

2011-03-17 Thread huh
http://www.youtube.com/watch?v=mWHdxN86n0Q :) On Mar 16, 5:58 pm, mark goldin markzolo...@gmail.com wrote: I would like to start learning ROR for server-side web development. My front-end is Adobe Flex. What is a development environment to develop in Ruby using Windows 7? Thanks -- You

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Hi Fred, thank you for your reply. I tried to edit Gemfile by your hint, but unfortunatelly, without successful... But I found one interesting thing -- if I will to delete content of Gemfile, my app work normally (but of course, the problem with RMagick is here still), as if there the content

[Rails] Re: model with no primary key

2011-03-17 Thread Frederick Cheung
On Mar 17, 9:37 am, tonypm tonypmar...@hotmail.com wrote: Hi, I have looked around quite a bit, and haven't found any workable solution to this. I am accessing an external/remote database from my rails app, in order to update a categories table. I cannot change the table structure of

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Frederick Cheung
On Mar 17, 10:54 am, Manny 777 li...@ruby-forum.com wrote: Hi Fred,  thank you for your reply. I tried to edit Gemfile by your hint, but unfortunatelly, without successful... But I found one interesting thing -- if I will to delete content of Gemfile, my app work normally (but of course,

[Rails] q@rhohub rhologs

2011-03-17 Thread tom
is rhologs integrated in a hosted rhosync account? thx tom -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: q@rhohub rhologs

2011-03-17 Thread tom
wrong list. sorry On Thu, Mar 17, 2011 at 8:14 AM, tom tomabr...@gmail.com wrote: is rhologs integrated in a hosted rhosync account? thx tom -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Fred: I am using Rails in version 3.0.5 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group,

[Rails] Entry not updated in database table(Active Record Error)

2011-03-17 Thread Chandu80
Hello All, I have a table invitation_workflows.Entry to this table is done via method send_invite which is called on the click of an Invite button. When I click on Invite button for the first time,entry gets created in the invitation_workflows table. However on subsequent clicks,the following

[Rails] RE: SofTeC 2011: Meet testing leaders from Microsoft,Oracle,Applabs and others on Mar 26, Hyd

2011-03-17 Thread slbangalore sl
Hello, After the successful earlier editions, SiliconIndia is organizing Software Testing Conference (SofTec 2011), a leading event for the Software Test and QA Community on March 26th, 2011 (Saturday) this time in Hyderabad. SofTeC 2011's agenda reflects the challenges organizations face today

[Rails] Re: Entry not updated in database table(Active Record Error)

2011-03-17 Thread Frederick Cheung
On Mar 17, 12:33 pm, Chandu80 chandu.she...@gmail.com wrote: Hello All, I have a table invitation_workflows.Entry to this table is done via method send_invite which is called on the click of an Invite button. When I click on Invite button for the first time,entry gets created in the

Re: [Rails] Entry not updated in database table(Active Record Error)

2011-03-17 Thread Walter Lee Davis
On Mar 17, 2011, at 8:33 AM, Chandu80 wrote: (The table invitation_workflows has the following columns (invitation_workflow_id ,invitor_id,invited_whom_id,invited_for_channel_id,invite_status) What exactly is the problem here,can't get by what it means. Thanks in Advance What the error says

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Fily Salas
Thank you both for the good info! It looks like I'm in the right track, so I will continue learning Ruby and later on I will jump into Rails. The other reason I want to have a good understanding about Ruby is to have the ability to create desktop apps, and as you mentioned it the language

Re: [Rails] Beta Invitation in Rails 3, little problem

2011-03-17 Thread radhames brito
the problem is here def create @invitation = Invitation.new(params[:invitation]) respond_to do |format| if @invitation.save Mailer.invitation(@invitation, signup_url(*:invitation_token=*@invitation.token)).deliver format.html { redirect_to(@invitation, :notice =

Re: [Rails] model with no primary key

2011-03-17 Thread radhames brito
What is your rails version? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Entry not updated in database table(Active Record Error)

2011-03-17 Thread Chandu80
Hi Frederick, Thanks for the response.Yes primary key was not set.I set it and it worked. :) Hi Walter, Thanks for the information. :) Regards Chandrika On Mar 17, 5:38 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 17, 12:33 pm, Chandu80 chandu.she...@gmail.com wrote:

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread paul h
On Mar 17, 12:40 pm, Fily Salas li...@ruby-forum.com wrote: Thank you both for the good info! It looks like I'm in the right track, so I will continue learning Ruby and later on I will jump into Rails. The other reason I want to have a good understanding about Ruby is to have the ability

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 8:40 AM, Fily Salas li...@ruby-forum.com wrote: Thank you both for the good info! It looks like I'm in the right track, so I will continue learning Ruby and later on I will jump into Rails. The other reason I want to have a good understanding about Ruby is to have

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Fily Salas
Paul Hollyer wrote in post #987913: http://pragprog.com/titles/ruby/programming-ruby http://pragprog.com/titles/rails4/agile-web-development-with-rails Tutorials http://railscasts.com/ Best of luck Paul Thank you for the links no, ruby is not good for desktop apps, since is slow and

[Rails] Re: q@rhohub rhologs

2011-03-17 Thread djangst
rho problem. On Mar 17, 8:15 am, tom tomabr...@gmail.com wrote: wrong list. sorry On Thu, Mar 17, 2011 at 8:14 AM, tom tomabr...@gmail.com wrote: is rhologs integrated in a hosted rhosync account? thx tom -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Paperclip validates_attachment_content_type not working?

2011-03-17 Thread mattyh88
Hi, I'm using the paperclip gem to upload photos. I'm trying to use the content-type validator in my photo-model but it's not working. Photo upload with just the file-size validator works. What could this be? Here's my code: http://pastebin.com/1nGfgmtN Thanks, Mathew -- You received this

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Frederick Cheung
On Mar 17, 12:29 pm, Manny 777 li...@ruby-forum.com wrote: Fred: I am using Rails in version 3.0.5 Weird. I think you need to get bundler working properly in your app first. Does bundle show think rmagick is part of your bundle ? Fred -- Posted viahttp://www.ruby-forum.com/. -- You

[Rails] Export To Excel - Change Default “Save as type” to Microsoft Office Excel Workbook(*xls)

2011-03-17 Thread Ankit Gupta
Hi all, I am Doing an Export to Excel with my Ruby on Ralis application.I have not used any gem or Plugin (since our requirement was something different, we couldn't use them). We used the inbuilt format.xls support that comes with Ruby on Rails. The problem is that, when we get our Excel, Save

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Frederick Cheung wrote in post #987919: Weird. I think you need to get bundler working properly in your app first. Does bundle show think rmagick is part of your bundle ? Fred How can I do that? If I see to my list of plugins in Gem, I think there is everything... *** LOCAL GEMS ***

[Rails] Nested Models are not connecting/connected

2011-03-17 Thread R. K.
I'm attempting to make a basic CRUD/data entry cookbook. I've got a recipe model that is composed of other models. I'm intending of using a single form to create the recipes such that n ingredients and n instructions can be associated to a single recipe. I understand why it's not happening I just

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Frederick Cheung
On Mar 17, 2:08 pm, Manny 777 li...@ruby-forum.com wrote: Frederick Cheung wrote in post #987919: Weird. I think you need to get bundler working properly in your app first. Does bundle show think rmagick is part of your bundle ? Fred How can I do that? If I see to my list of plugins

[Rails] Re: Nested Models are not connecting/connected

2011-03-17 Thread Frederick Cheung
On Mar 17, 2:57 pm, R. K. li...@ruby-forum.com wrote: I'm attempting to make a basic CRUD/data entry cookbook. I've got a recipe model that is composed of other models. I'm intending of using a single form to create the recipes such that n ingredients and n instructions can be associated to

[Rails] X-Files ? strange ! script behaves differently when running as cron task....

2011-03-17 Thread Erwin
I am running a ruby script ( 1.9.2, w Rails3 gems) this script reads 2 different pop3 mailboxes then send back emails to senders with a specific link in the email body... for testing I send one email in each mailboxes joi...@domain.com and un...@domain.es running the script in the server

[Rails] Re: Paperclip validates_attachment_content_type not working?

2011-03-17 Thread mattyh88
Apparently it has to do with 'uploadify' using another content type. Still looking how to whitelist the image content types Grts, Mathew On Mar 17, 2:41 pm, mattyh88 mathew.hu...@gmail.com wrote: Hi, I'm using the paperclip gem to upload photos. I'm trying to use the content-type validator

[Rails] Is there an authorization gem/plugin that tells why exactly authorization failed?

2011-03-17 Thread Szymon Nowak
Hey, I'm currently using cancan, but we got a problem with it. In my app users got roles and they can also be banned by other users. The problem with cancan is that I don't know if authorization failed because user has not enough privileges to perform an action, or it's because he was banned

Re: [Rails] Export To Excel - Change Default “Save as type” to Microsoft Office Excel Workbook(*xls)

2011-03-17 Thread Walter Lee Davis
On Mar 17, 2011, at 10:05 AM, Ankit Gupta wrote: Hi all, I am Doing an Export to Excel with my Ruby on Ralis application.I have not used any gem or Plugin (since our requirement was something different, we couldn't use them). We used the inbuilt format.xls support that comes with Ruby on

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Walter Lee Davis
On Mar 17, 2011, at 9:37 AM, Fily Salas wrote: Paul Hollyer wrote in post #987913: http://pragprog.com/titles/ruby/programming-ruby http://pragprog.com/titles/rails4/agile-web-development-with-rails Tutorials http://railscasts.com/ Best of luck Paul Thank you for the links no, ruby is

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Frederick Cheung wrote in post #987929: run bundle show from the root of your app Fred Thanks Fred for hint, here is list of plugins in my app... But how can I add RMagick to my app? Gems included by the bundle: * abstract (1.0.0) * actionmailer (3.0.5) * actionpack (3.0.5) *

Re: [Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Walter Lee Davis
You can freeze all of the gems into your site, so you don't have to rely on your host's version of anything. Have a look on the bundler site for the incantation. These frozen Gems get partially compiled (at least that's how it appears to me) so there may even be some advantage to running

Re: [Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Colin Law
On 17 March 2011 16:28, Manny 777 li...@ruby-forum.com wrote: Frederick Cheung wrote in post #987929: run bundle show from the root of your app Fred Thanks Fred for hint, here is list of plugins in my app... But how can I add RMagick to my app? Add it to your Gemfile (as Fred's post

[Rails] code browsing: I want less than an IDE, more than grep

2011-03-17 Thread Fearless Fool
A question for the pros: I want to dig into the Rails source code to understand How Things Work. What tools do people use for interactive browsing? In particular, I'd like to be able to point at a method name (or package, or class) in the source code, see a list places where that's defined, and

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Matt Jones
On Mar 16, 10:11 pm, Philip Hallstrom phi...@pjkh.com wrote: Can RoR do everything PHP can do? No, but Ruby can.  I'm sure someone could find some case where that isn't true, but it's probably not critical.  Ah.. Here's one I don't think you can run ruby/rails on Microsofts IIS

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 9:37 AM, Fily Salas li...@ruby-forum.com wrote: Paul Hollyer wrote in post #987913: http://pragprog.com/titles/ruby/programming-ruby http://pragprog.com/titles/rails4/agile-web-development-with-rails Tutorials http://railscasts.com/ Best of luck Paul

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Ar Chron
Manny 777 wrote in post #987883: Hi Fred, thank you for your reply. I tried to edit Gemfile by your hint, but unfortunatelly, without successful... But I found one interesting thing -- if I will to delete content of Gemfile, my app work normally (but of course, the problem with RMagick is

[Rails] regarding yml

2011-03-17 Thread loganathan sellappa
Hi All, In my config/user.yml age: | the age of the user is %=user.age% the name of the user is%=user.name% In my controller: user=User.find_by_name(judi) age=user.age = i get 34 puts eval(USER[age]) =get nil value in console puts (USER[age] = got the age of the user is %=user.age%

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Philip Hallstrom
The other reason I want to have a good understanding about Ruby is to have the ability to create desktop apps, no, ruby is not good for desktop apps, since is slow and if you compile it, it looses some of its advantages. Maybe... maybe not. If your app doesn't require any speed it's

Re: [Rails] regarding yml

2011-03-17 Thread Philip Hallstrom
In my config/user.yml age: | the age of the user is %=user.age% the name of the user is%=user.name% In my controller: user=User.find_by_name(judi) age=user.age = i get 34 puts eval(USER[age]) =get nil value in console puts (USER[age] = got the age of the user is %=user.age%

[Rails] Re: Nested Models are not connecting/connected

2011-03-17 Thread Ar Chron
R. K. wrote in post #987926: I'm attempting to make a basic CRUD/data entry cookbook. I've got a recipe model that is composed of other models. I'm intending of using a single form to create the recipes such that n ingredients and n instructions can be associated to a single recipe. I

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Philip Hallstrom
Any good tutorials or books about Ruby or Ruby on Rails? http://www.humblelittlerubybook.com/ http://www.rubyflow.com/ (great organizer of blog/article/tips) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Problems with master-detail relationship

2011-03-17 Thread rhin0nt
I have two tables. Let say headers and details. On headers_controller.rb I have has_many :details On details_controller.rb I have belongs_to :header I have in my model for header (just for testing): def list @headers = Headers.sort( headers.kind ASC) end So when i run after loading

[Rails] code browsing: I want less than an IDE, more than grep

2011-03-17 Thread Philipp Fehre
Personally I'm a big fan of ack (http://betterthangrep.com/) even though it is command line it makes searching and code quick. I'm using Vim where ack is easily integrated and it probably is the same for emacs. For TextMate there is the AckMate Bundle. On 2011-03-17 17:47:07 +0100,

[Rails] Why no code completion ?

2011-03-17 Thread hoboy Hoboy
I am new to RoR I have installed aptana, eclipse RoR plugin on ubuntu 10.10. but whether I create Ruby or Rails project then add a new file.rb that file does not have any code completion for example Math. control space This work on Netbeans. -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Thank you for your replies guys. I made bundle install in my root of app... but if I see then on plugins, I didn't see RMagick... The output from bundle show is the same, as I posted here (9th post)... Where can be the error? What could be wrong yet... One more time, thanks -- Posted via

[Rails] Re: X-Files ? strange ! script behaves differently when running as cron task....

2011-03-17 Thread Erwin
First clue .. running in the console ... no error .. but when running the script as a cron task, I receive a message from the cron daemon : /usr/local/rvm/gems/ruby-1.9.2-p136@rails3/gems/actionpack-3.0.5/lib/ action_view/template/handlers/erb.rb:129:in `valid_encoding': Your template was not

Re: [Rails] Problems with master-detail relationship

2011-03-17 Thread Colin Law
On 17 March 2011 16:27, rhin0nt rhino...@gmail.com wrote: I have two tables. Let say headers and details. On headers_controller.rb I have  has_many :details That should be in the model not the controller On details_controller.rb I have  belongs_to :header ditto I have in my model

Re: [Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Colin Law
On 17 March 2011 17:30, Manny 777 li...@ruby-forum.com wrote: Thank you for your replies guys. I made bundle install in my root of app... but if I see then on plugins, I didn't see RMagick... The output from bundle show is the same, as I posted here (9th post)... Where can be the error? What

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
My Gemfile: require 'rubygems' require 'mongo' require 'RMagick' source 'http://rubygems.org' gem 'rails', '3.0.5' gem mongo_mapper gem rails3-generators Output from bundle install Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.5) Using

Re: [Rails] Problems with master-detail relationship

2011-03-17 Thread Colin Law
On 17 March 2011 17:39, Colin Law clan...@googlemail.com wrote: On 17 March 2011 16:27, rhin0nt rhino...@gmail.com wrote: I have two tables. Let say headers and details. On headers_controller.rb I have  has_many :details That should be in the model not the controller On

Re: [Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Colin Law
On 17 March 2011 17:51, Manny 777 li...@ruby-forum.com wrote: My Gemfile: require 'rubygems' require 'mongo' require 'RMagick' Look back at Fred's first post (as I suggested) where he explained that is not the correct syntax for Gemfile. I suggest you do some research on

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Fily Salas
Thank you all very much for your help! Is anybody here that uses Ruby mainly for desktop apps that could share his/her experiences? Sorry if I deviated from a RoR thread to a Ruby debate -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Mailer template encoding error ( Spanish characters) not valid US-ASCII (obviously) ...

2011-03-17 Thread Erwin
Some of my Mailer templates are in spanish, I get this error message : /usr/local/rvm/gems/ruby-1.9.2-p136@rails3/gems/actionpack-3.0.5/lib/ action_view/template/handlers/erb.rb:129:in `valid_encoding': Your template was not saved as valid US-ASCII. Please either specify US- ASCII as the encoding

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 2:01 PM, Fily Salas li...@ruby-forum.com wrote: Thank you all very much for your help! Is anybody here that uses Ruby mainly for desktop apps that could share his/her experiences? Sorry if I deviated from a RoR thread to a Ruby debate I use ruby to interact with

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
Ok, I'm editing my Gemfile and looks this: source 'http://rubygems.org' gem 'rails', '3.0.5' gem mongo_mapper gem rails3-generators gem 'rmagick', :require = 'RMagick' My output from bundle install --- Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.5) Using builder

[Rails] Re: Mailer template encoding error ( Spanish characters) not valid US-ASCII (obviously) ...

2011-03-17 Thread Frederick Cheung
On Mar 17, 6:07 pm, Erwin yves_duf...@mac.com wrote: class Notifier ActionMailer::Base   default :charset = utf-8 ..         mail(:to = destination, :subject = subject, :from = from) do |format|           format.text(:content_transfer_encoding = base64)          

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Fily Salas
Thank you for your comments! Well, it looks like I miss-understood when I read that Ruby was designed to be a general programming language, also I thought it was since they often compare it to Java, C++, and mainly Python. Any way I will give it a try, the language has a very clear syntax that

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Manny 777
I mean, that the better way to learning is to continue in PHP and then start with RoR. If you have some experience with PHP, try to be able work in that and write in that web apps. You will learn some programming practices and other programming language will not a problem... Plus PHP have a

[Rails] optional form :remote ?

2011-03-17 Thread Tony Primerano
Is it possible to have a form submit normally if button X is pushed and do an AJAX call if button Y is pushed? My use case: I'm letting users do some customizations and I want a preview button and a save button. Hitting preview submits the current form values as an AJAX call and the returned

[Rails] Re: Rails getting started guide: validates not working for me?

2011-03-17 Thread Tony Primerano
The code looks right. Make sure you don't have class Post defined somewhere else (like post.last.rb). Also, make sure you restart the console each time you make changes to the Post class. Don't do a reload on the post class from inside the console as this doesn't work with ActiveRecord last I

[Rails] phusion passenger and mongrel cluster (both on apache) in the same server

2011-03-17 Thread Felipe Gallois
Hello all, Does anyone know if it is possible to use both PP and mongrel cluster on the same server? We have a running server here with mongrel cluster but I would like to run a specific application on phusion passenger. Would I face any problem with that setup? Cheers -- You received this

[Rails] Re: Why no code completion ?

2011-03-17 Thread Tony Primerano
Use Netbeans. :-) Or find an Aptana help forum ;-) I suspect most people here use textmate, I use netbeans and haven't tried Aptana in over a year On Mar 17, 1:26 pm, hoboy Hoboy li...@ruby-forum.com wrote: I am new to RoR I have installed aptana, eclipse RoR plugin on ubuntu 10.10. but

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Phil Crissman
On Thu, Mar 17, 2011 at 2:13 PM, Fily Salas li...@ruby-forum.com wrote: Thank you for your comments! Well, it looks like I miss-understood when I read that Ruby was designed to be a general programming language, also I thought it was since they often compare it to Java, C++, and mainly

[Rails] Help with session

2011-03-17 Thread radhames brito
oookk, so i have 2 actions , create and destroy, i can get session[:cart_id] from inside the create method but not from inside the delete method. def create @cart = current_cart Rails.logger.debug SESSION INFO HERE #{session[:cart_id]} this here is 18 . . . def destroy #

[Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Fily Salas
Thank you all very much! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] optional form :remote ?

2011-03-17 Thread Philip Hallstrom
Is it possible to have a form submit normally if button X is pushed and do an AJAX call if button Y is pushed? My use case: I'm letting users do some customizations and I want a preview button and a save button. Hitting preview submits the current form values as an AJAX call and the

Re: [Rails] Re: Understanding Ruby on Rails

2011-03-17 Thread Philip Hallstrom
Well, it looks like I miss-understood when I read that Ruby was designed to be a general programming language, It is a general programming language. One last question, if someone would to ask you why you USE or why you SHOULD use Ruby over PHP, Java or Python what would you say? Reason

[Rails] Re: Help with session

2011-03-17 Thread Tony Primerano
does it work when you uncomment this line in destroy? # @cart = current_cart On Mar 17, 4:31 pm, radhames brito rbri...@gmail.com wrote: oookk, so i have 2 actions , create and destroy, i can get session[:cart_id] from inside the create method but not from inside the delete method. def

[Rails] Re: Help with session

2011-03-17 Thread Tony Primerano
oh wait.. ignore that. of course it will work but it just creates a new cart. :-\ sorry, long day On Mar 17, 4:54 pm, Tony Primerano tony.primer...@gmail.com wrote: does it work when you uncomment this line in destroy? # @cart = current_cart On Mar 17, 4:31 pm, radhames brito

Re: [Rails] Re: Help with session

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 4:54 PM, Tony Primerano tony.primer...@gmail.comwrote: does it work when you uncomment this line in destroy? # @cart = current_cart If i do that what happens is that since the session is nil a new cart i created and i lose all the items in the original current_cart

Re: [Rails] Re: Help with session

2011-03-17 Thread radhames brito
but why does the session changes? or why cant i access it form the destroy method? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: Help with session

2011-03-17 Thread Tony Primerano
any before filters clearing it out? with AJAX, if your rails app is on a different domain than the page hosting the form the cookies may get blocked resulting in no session information being available. On Mar 17, 5:00 pm, radhames brito rbri...@gmail.com wrote: On Thu, Mar 17, 2011 at 4:54

Re: [Rails] Re: Help with session

2011-03-17 Thread Colin Law
On 17 March 2011 21:03, radhames brito rbri...@gmail.com wrote: but why does the session changes? or why cant i access it form the destroy method? Do a global search through your app and make sure you are not accessing the session anywhere else. If there are any other references but you believe

[Rails] Re: Starling/Workling Setup

2011-03-17 Thread Nagachaitanya Vellanki
John Detloff wrote in post #979364: Hello everyone, I'm attempting to get starling and workling set up on my system, and have been trying to closely follow the instruction listed in this railscast: http://media.railscasts.com/videos/128_starling_and_workling.mov However, I've found a

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Frederick Cheung
On Mar 17, 6:51 pm, Manny 777 li...@ruby-forum.com wrote: class Files   def self.save(upload)                    img =  Magick::Image.read('public/data/nature6.jpg').first        thumb = img.resize(width, height)              ...   end end I suppose you could try ::Magick although

[Rails] Re: phusion passenger and mongrel cluster (both on apache) in the same server

2011-03-17 Thread Frederick Cheung
On Mar 17, 8:04 pm, Felipe Gallois felipegall...@gmail.com wrote: Hello all, Does anyone know if it is possible to use both PP and mongrel cluster on the same server? We have a running server here with mongrel cluster but I would like to run a specific application on phusion passenger.

[Rails] Re: Help with session

2011-03-17 Thread Frederick Cheung
On Mar 17, 9:00 pm, radhames brito rbri...@gmail.com wrote: On Thu, Mar 17, 2011 at 4:54 PM, Tony Primerano tony.primer...@gmail.comwrote: does it work when you uncomment this line in destroy? # @cart = current_cart If i do that what happens is that since the session is nil a new cart

Re: [Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Colin Law
On 17 March 2011 18:51, Manny 777 li...@ruby-forum.com wrote: But I am getting still the error uninitialized constant Files::Magick I presume you restarted the server. Colin -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: phusion passenger and mongrel cluster (both on apache) in the same server

2011-03-17 Thread Felipe Gallois
Since I'm using mod_rewrite and sending the mongrel_cluster app to another port, would it still be a problem? thanks! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com.

[Rails] Re: phusion passenger and mongrel cluster (both on apache) in the same server

2011-03-17 Thread Frederick Cheung
On Mar 17, 9:54 pm, Felipe Gallois felipegall...@gmail.com wrote: Since I'm using mod_rewrite and sending the mongrel_cluster app to another port, would it still be a problem? You still need to stop passenger trying to serve the app for you, hence the use of RackAutoDetect/RailsAutoDetect

[Rails] Re: Uninitialized constant Files::Magick -still around

2011-03-17 Thread Manny 777
I forgot restart the server... uhh, thank you guys, this was really demanding... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: phusion passenger and mongrel cluster (both on apache) in the same server

2011-03-17 Thread Felipe Gallois
Got it working! Like a charm. Thank you very much! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] Re: Help with session

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 5:47 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 17, 9:00 pm, radhames brito rbri...@gmail.com wrote: On Thu, Mar 17, 2011 at 4:54 PM, Tony Primerano tony.primer...@gmail.comwrote: does it work when you uncomment this line in destroy? #

[Rails] easy scheduling without cron

2011-03-17 Thread Alexander Farley
Hi, my server doesn't allow shell access or scripts. What's the easiest way to schedule a script, from within ruby/rails? I need to schedule a script to scrape search results and store to a database once per day. I've googled but some of the solutions seemed overly complex, there should be a

Re: [Rails] Re: Help with session

2011-03-17 Thread radhames brito
On Thu, Mar 17, 2011 at 5:06 PM, Tony Primerano tony.primer...@gmail.comwrote: any before filters clearing it out? with AJAX, if your rails app is on a different domain than the page hosting the form the cookies may get blocked resulting in no session information being available. It works

[Rails] Re: Beta Invitation in Rails 3, little problem

2011-03-17 Thread Cluter Vipic
Radhames Brito wrote in post #987907: @invitation = Invitation.new(params[:invitation]) respond_to do |format| if @invitation.save Mailer.invitation(@invitation, signup_url(*:invitation_token=*@invitation.token)).deliver format.html { redirect_to(@invitation, :notice

Re: [Rails] Re: Help with session

2011-03-17 Thread radhames brito
i official , if i try to do and ajax request to the destroy action i cant access the session, can some on please test to see if its a bug? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

  1   2   >