[Rails] additional model attributes

2011-10-25 Thread Lukas M.
Hi, i have a place model with 2 columns (id, name). I'm calling an external api which gives me data to create a new place object. I would like to add the address from the external place to the place object and render it as a json result, without storing it in the database. i don't get any

[Rails] Re: additional model attributes

2011-10-25 Thread Lukas M.
hi, that works but not in the case when i would like to do something like this: user_place = Location.new(:place = place, :user = user) user_place.to_json //address is missing -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: additional model attributes

2011-10-25 Thread Lukas M.
hm.. no luck with that either. when i try to print out the places object in the console (logger.debug @place.to_yaml), address is missing. -- 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

[Rails] Split the en.yml into multiple files?

2010-05-18 Thread lukas
Hello, I have a problem with my en.yml file in my Rails project: It's getting way too big. Is it possible to split the file up into multiple files, like en_labels.yml, en_hints.yml and so forth? I couldn't find anything so far.. Cheers L. -- You received this message because you are

[Rails] Re: Split the en.yml into multiple files?

2010-05-18 Thread lukas
as described in your link? On May 18, 12:47 pm, Frederick Cheung frederick.che...@gmail.com wrote: On May 18, 11:17 am, lukas lukas.zielin...@googlemail.com wrote: Hello, I have a problem with my en.yml file in my Rails project: It's getting way too big. Is it possible to split the file up

[Rails] Re: Split the en.yml into multiple files?

2010-05-18 Thread lukas
Yes, I think you're right about the meaninglessness of the filename. Okay, another problem solved. Thanks, Fred! :) On May 18, 1:03 pm, Frederick Cheung frederick.che...@gmail.com wrote: On May 18, 11:52 am, lukas lukas.zielin...@googlemail.com wrote: Ah great, thanks. I just realized

[Rails] Rails/Rake Migrations - Newbie Question

2010-02-17 Thread lukas
? Now this is obviously a very noobish question, but maybe one of you can clarify. FYI, I'm using latest RoR with Aptana on Windows7 and mySQL as DB- backend. Thanks, Lukas -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

[Rails] Re: Rails/Rake Migrations - Newbie Question

2010-02-17 Thread lukas
wrote: On 17 February 2010 13:12, lukas lukas.zielin...@googlemail.com wrote: Hello, I have a problem understanding Rails/Rake migrations. For example let's say I have a migrate-script like this: class CreateUsers ActiveRecord::Migration  def self.up    create_table :users do

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread lukas
Marnen, thanks for your feedback. Indeed, I'm a newbie ruby programer. I'll keep your advice in mind. I was just hoping I could run the method from the debugging console and check the output directly. On Feb 8, 11:23 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: lukas wrote: Hello

[Rails] Re: How to use ruby script/console to debug methods in appl

2010-02-09 Thread lukas
Thanks Jeff, it worked. We've been able to test the whole stack of methods. :) And I've learned something today. Regards Lukas On Feb 9, 8:44 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: lukas wrote: Marnen, thanks for your feedback. Indeed, I'm a newbie ruby programer. I'll

[Rails] How to use ruby script/console to debug methods in application.rb?

2010-02-08 Thread lukas
accordingly. Rails is version 2.2.2 Any help on this or some other best practice to check those methods is appreciated. Lukas -- 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-t

[Rails] Non-ActiveRecord based model being passed as string?

2009-09-24 Thread Luke Lukas
I have a model that looks like this (with various other methods) class HsdPair attr_accessor :hsd def initialize(hsd) @hsd = hsd @current_display = 0 @has_changed_flag = false end end After initializing this object in the controller @hsd_pairs = HsdPair.new(@job.hsd_pairs)

[Rails] Badly formatted E-Mail with ActionMailer

2008-09-30 Thread Lukas Rieder
Hello, I've setup up Mailing on my Rails app. The setup uses smtp with (tested) correct settings. But all the mails sent through UserMailer have no subject and look like this: (Begin) #Debian-40-etch-64-minimal.tmail Subject: www.paperc.de - Deine Registrierung bei PaperC! Mime-Version: 1.0