[Rails] Gem Mongoid: multiples order_by in embbeds_many not work?

2014-08-26 Thread Rodrigo Mendonça
Example: School embeds_many :students In rails console: School.first.students.order_by(:name.asc, :email.desc) Works with name. but why ordering from second field (email) not work?? It's a bug? I opened an issue in mongoid gem, but maybe it's a mongodb problem insted https://github.com/mongoid/m

Re: [Rails] Re: Coffee Script Sucks

2014-03-03 Thread Rodrigo Mendonça
Coffee is good We can do this in cofee boxPerson = ' any thing ' Coffe support breakline.. we can do identation. We can make beautifull views with coffee. In javascript its impossible. Its my point Em 03/03/2014 15:40, escreveu: > I was very resistant to it at first, as well. As i

Re: [Rails] Re: Coffee Script Sucks

2014-03-01 Thread Rodrigo Mendonça
I think oposite in js true == "true" // this return true in coffee true == "true" # return false in js we need true ==*=* "true" // only this return false I think if coffee is bad, javascript is worst. 2014-03-01 14:28 GMT-03:00 deepak : > agree, no explanation needed. > > > On Saturday, Marc

Re: [Rails] Coffee Script Sucks

2014-03-01 Thread Rodrigo Mendonça
why? 2014-03-01 13:05 GMT-03:00 : > Yea, that's all I wanted to say. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr.

Re: [Rails] how to copy data from mysql to postgres?

2013-01-14 Thread Rodrigo Mendonça
on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Rodrigo Mend

Re: [Rails] Bye-bye, Observers

2012-12-07 Thread Rodrigo Mendonça
> https://groups.google.com/d/msg/rubyonrails-talk/-/PjOT5x0UFSkJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

Re: [Rails] regarding the controller and view

2011-07-27 Thread Rodrigo Mendonça
egroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

Re: [Rails] Re: windows XP, ruby 1.9.1, rails 3, sass problem

2011-05-21 Thread Rodrigo Mendonça
alk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >

Re: [Rails] Re: Php to Ruby compilation software

2011-05-03 Thread Rodrigo Mendonça
> > > > > > > > > > > > That's probably the ugliest ruby code I've ever seen. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email t

Re: [Rails] Re: HTML5 Forms

2011-04-29 Thread Rodrigo Mendonça
ubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- Rodrigo Mendonça (62) 8567-3142 -- You received th

Re: [Rails] ActiveRecord: when exactly is a record (model) saved to the database?

2011-03-29 Thread Rodrigo Mendonça
ou 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 > rubyonrails-talk+unsubscr...@googlegroups.com. >

Re: [Rails] best ui toolkit?

2011-01-10 Thread Rodrigo Mendonça
it was made in rails 2 but it's works fine for me on rails 3... i fix some problems in my migration to rails 3, but it was easy try this https://github.com/springbok/jqgrid-rails3 <https://github.com/springbok/jqgrid-rails3>It's for rails 3 =D 2011/1/10 Mauro > 2011/1/

Re: [Rails] best ui toolkit?

2011-01-10 Thread Rodrigo Mendonça
I love this datagrid, but i need some extra behaviour like add columns and improve the filter. The application is mine and will be perfect But jqgrid is great.. i am very meticulous with my application =D 2011/1/10 Mauro > 2011/1/10 Rodrigo Mendonça : > > jqgrid to rails > > htt

Re: [Rails] best ui toolkit?

2011-01-10 Thread Rodrigo Mendonça
jqgrid to rails https://github.com/ahe/2dc_jqgrid <https://github.com/ahe/2dc_jqgrid>I am using this with rails 3... perfect, but i will develop my own datagrid in future... with jquery offcourse =D Em 10 de janeiro de 2011 11:15, Rodrigo Mendonça escreveu: > Extjs is free only

Re: [Rails] best ui toolkit?

2011-01-10 Thread Rodrigo Mendonça
<http://www.trirand.com/blog/jqgrid/jqgrid.html>What else you want?? i will help you =D 2011/1/10 Mauro > 2011/1/10 Rodrigo Mendonça : > > Look at the demos > > http://jqueryui.com/demos/ > > Yes I've seen. > Have you looked at extjs? > http://dev.sencha.com/depl

Re: [Rails] best ui toolkit?

2011-01-10 Thread Rodrigo Mendonça
Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.goog

Re: [Rails] Re: rails training?

2010-12-16 Thread Rodrigo Mendonça
mail to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Rodrigo Mendonça (62) 8567-

Re: [Rails] rails training?

2010-12-16 Thread Rodrigo Mendonça
message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For mor

Re: [Rails] Re: Do associations work both ways?

2010-12-12 Thread Rodrigo Mendonça
; . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, se

Re: [Rails] Re: Do associations work both ways?

2010-12-12 Thread Rodrigo Mendonça
Great!! when user_id is null (and can be null in some cases) you can do this <%post.each do |p|%> <%=p.user.name unless p.user.nil?%> <%end> other way is <%=p.user.name unless p.user.empty?%> 2010/12/12 Colin Law > 2010/12/12 Rodrigo Mendonça : > >

Re: [Rails] Re: Do associations work both ways?

2010-12-12 Thread Rodrigo Mendonça
are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For more options, visit this gro

Re: [Rails] Re: Do associations work both ways?

2010-12-12 Thread Rodrigo Mendonça
are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For more options, visit this

[Rails] Plugin rmm5t / strip_attributes

2010-11-17 Thread Rodrigo Mendonça
Anyone know if have any plugin like these for Rails 3.0 https://github.com/rmm5t/strip_attributes -- Rodrigo Mendonça (62) 8567-3142 -- 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 rub

Re: [Rails] Re: How old are you?

2010-10-12 Thread Rodrigo Mendonça
roups.com > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to t

Re: [Rails] File preview in Rails

2010-08-26 Thread Rodrigo Mendonça
subscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

[Rails] named routes don't load in plugin

2010-08-11 Thread Rodrigo Mendonça
can i load these helpers (edit_post, new_post...) inside my plugin Thanks -- Rodrigo Mendonça (62) 8567-3142 -- 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...@googl

[Rails] parent controller_name (nested)

2010-08-03 Thread Rodrigo Mendonça
quot; with <%=controller_name%> But how can i get "posts" Sorry for my bad english =/ Thx -- Rodrigo Mendonça (62) 8567-3142 -- 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

Re: [Rails] Multiple inserts in ActiveRecord

2010-07-31 Thread Rodrigo Mendonça
eceived 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...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For