I am with you also, thank you!
On Tuesday, September 4, 2012 4:33:12 AM UTC+3, Tima wrote:
>
> Hi everyone! I'm a newbie engineer.
>
> I started rails programming, but I'm learning alone and can't understand
> other rails cord so much.
> So I wanna have friend with other newbie rails engineers an
On Sep 6, 4:35 am, Ed wrote:
> Trying to convert my app (and brain) to RESTful routes from the old
> style. What is the accepted approach to nesting a resource within 2
> other resources?
>
> Example:
>
> Models
>
> Person has_many :scores
> Contest has_many :scores
> Score belongs_to :pe
gt; end
>
> On May 14, 2:51 pm, Marnen Laibow-Koser wrote:
>
>
>
>
>
> > [Please quote when replying]
>
> > Viorel wrote:
> > > Thank you Michel! I works!
>
> > Great. Now normalize your database schema to get rid of those repeating
> >
Thank you Michel! I works!
On May 14, 9:36 pm, Michael Pavling wrote:
> On 14 May 2010 19:24, Viorel wrote:
>
> > My problem is that ModelName has no field named field_name, it have
> > fields like field01, field02,...,field09. So, how do I transform a
> > string i
On May 14, 9:26 pm, Joshua Martin wrote:
> What exactly are you trying to do with this?
I am trying to access these fields
>
>
>
>
>
> On Fri, May 14, 2010 at 2:24 PM, Viorel wrote:
> > I have something like this:
> > for xx in '01'
I am trying to access those fields
On May 14, 9:26 pm, Joshua Martin wrote:
> What exactly are you trying to do with this?
>
>
>
>
>
> On Fri, May 14, 2010 at 2:24 PM, Viorel wrote:
> > I have something like this:
> > for xx in '01'
I have something like this:
for xx in '01'..'09'
field_name='field'+xx
puts ModelName.field_name
end
My problem is that ModelName has no field named field_name, it have
fields like field01, field02,...,field09. So, how do I transform a
string in a field name?
It might be a trivial solution, b
> Bob, I don't understand, a variable @show_new_expense_page set in the
> controller will be available in the view.
>
> Colin
Set where in the controller? In a :before_filter or in show?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
> Why can't my model have calculated values? Right know, my problem is
> that I have a lot of virtual attributes in order to calculate these
> values when I need them. I use this attributes a lot (the virtual
It is a long discussion, but it is a basic principle of any RDBMS. It
is about efficiency
I think it is a problem with your model. Tou should not have fields
with calculated values, only a method that calculate the value, witch
you call when you need that value
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this gr
You should remove:null => false. With it, you have a 0 in any new
record, so validates_presence_of :employee_id will return true.
--
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...
You were right, Bigos. It doesn't work. Apt-get updates rubygems for
ruby, not jruby from Netbeans. Anyway, I resoved the problem by
installing 6.8 from Netbeans. Thank you all!
Gintautas: Just curiosity: Did you ever tried Netbeans?
Michael: English is not my native language. What is YMMY?
--
Yo
Gintautas: I don't know. I want to find out!
On Mar 24, 3:10 pm, Gintautas Šimkus wrote:
> Hey, not my intent to hijack the thread, but what's better about Netbeans on
> *nix system compaired to gvim or other advanced editor?
--
You received this message because you are subscribed to the Google
g gem ... (RuntimeError)
> > gem update --system is disabled on Debian. RubyGems can be updated
> > using the official Debian repositories by aptitude or apt-get.
>
> > Jacek
>
> > On 23 Mar, 16:58, Colin Law wrote:
> >> On 23 March 2010 16:47, Viorel wrote:
Thanks for your quick answers.
Michel:
6.7 is the latest version on Ubuntu repository, it comes with apt-get
Colin:
You are right.
Both:
Tried that. It seams I didn't do it where I should, because in
terminal I get
sudo: gem: command not found
Can I do it from Netbeans?
--
You received this mess
I just installed Netbeans 6.7 on Ubuntu 9.4 and all seems to be OK,
except I get the following error when I try rake tasks:
Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update
--system` and try again.
Thank you for any help
Viorel
--
You received this message because you
> I have created a single file named index.html.erb inside
> app/views/receta.
As the message says, it should be app/views/recetas
On Mar 22, 5:56 am, tuti plain wrote:
> Hi everyone,
>
> I am trying to set up a controller and a view manually, without the
> aid of scaffolding (though I am usin
If @average_stat is Stat.new then @average_stat.points,
@average_stat.assists, etc... are also integer. So you could use a
array variable, after stats = Stat.find(:all) :
@average_stat=[ stats.sum('points') / stats.count('points'),
stats.sum('assists') / stats.count('assists') , stats.sum('block
What errors?
On Mar 8, 4:29 am, xxdesmus wrote:
> I tried date_select but I kept getting a bunch of errors.
>
> On Mar 7, 3:01 pm, Viorel wrote:
>
>
>
> > > Hey, you don't happen to know of a simple way of implementing a date
> > > picker for a field in
> Hey, you don't happen to know of a simple way of implementing a date
> picker for a field in a form do you? I was hoping to accomplish this
> without needing to track down a plugin for the task.
>
> On a related note: how can I set the default value of a field to be
> today's date (just the dat
If the field is empty, then self.start_date is nil. Try this:
def start_date_should_not_be_greater_than_current_date
if !self.start_date.nil?
if self.start_date > Date.today
errors.add("Whatever")
end
end
end
or something similar
On Mar 5, 8:08 am, Hemant Bhargava wrote:
> I h
Hi, Kevid!
Have you tried scaffolding? It shold do the trick, you have only to
delete unnecessary data in index.html.erb and move the link to name.
--
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 rubyo
22 matches
Mail list logo