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
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
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
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
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
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
?
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
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
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
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
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
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)
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
13 matches
Mail list logo