[Rails] Access belongs_to on a Mongoid::Document subclass

2013-05-08 Thread dbkbali
Just a hunch, but for starters index is a reserved mongoid word so for starters try changing your class name. Regards, David -- 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

[Rails] Access belongs_to on a Mongoid::Document subclass

2013-05-08 Thread dbkbali
Just a hunch, but for starters index is a reserved mongoid word so for starters try changing your class name. Regards, David -- 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

Re: [Rails] Editors in Rails

2011-09-19 Thread dbkbali
If you are using rails 3.1 I found mercury editor extremely easy to implement. http://jejacks0n.github.com/mercury/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg

[Rails] Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?

2011-07-28 Thread dbkbali
I am using Mongoid and factory girl works fine. Havent used mongomapper, but Mongoid seems to provide the flexibility of using active record type relationships, with ongoing active support and upgrades to the orm. Regards David Krett -- You received this message because you are subscribed to

[Rails] Re: params function not working

2010-10-15 Thread dbkbali
On Oct 15, 3:43 am, radhames brito wrote: > > I mean that you're apparently using it as a repeated pattern.  I think > > it's an antipattern -- something that looks like a good design pattern > > at first, but is in fact to be avoided. > Marnen, As someone who is a relative rails newbie, and wh

[Rails] Re: Languages

2010-08-21 Thread dbkbali
On Aug 19, 8:26 pm, Marnen Laibow-Koser wrote: > dbkbali wrote: > > On Aug 3, 11:25 pm, Marnen Laibow-Koser wrote: > >> RailsI18Nis not "really nice". I recommend fast_gettext instead. > > > Marnen, > > > I am currently working on a multiple

[Rails] Re: seek recommendations for sortable, paginating table that accepts 'delete' selection...

2010-08-21 Thread dbkbali
On Aug 20, 11:32 pm, Lille wrote: > Hi, > > I've been happily using the tablesorter plugin with pagination for > jQuery in my rails app, but now I'm having a tough time integrating > Railsian behavior like checkboxes that result in the deletion of data > presented in table rows, etc. (behavior a

[Rails] Re: Languages

2010-08-19 Thread dbkbali
On Aug 3, 11:25 pm, Marnen Laibow-Koser wrote: > Leonardo Mateo wrote: > > On Tue, Aug 3, 2010 at 11:06 AM, Pale Horse > > wrote: > > >> I've not read this, though I imagine it to be overkill for my purposes. > > Really? > > You should read it. That's how rails works withi18n. Overkill would >

[Rails] Rails 2.3.8 Upgrade Mods

2010-05-25 Thread dbkbali
Same problem here but solved! hopefully this is helpful. Solution was to watch Ryan Bates Railscast on Rails 3 XSS, and then to ensure any strings being sent out by my form and custom helpers was HTML Safe => Just look for where the helpers are rendering tags and string and add the ".html_safe" met

[Rails] Re: has one relationship through join table - orphaned records on update

2010-04-11 Thread dbkbali
r_id"=>"", "detranslator_id"=>"", "idtranslator_id"=>"3", "ownership_attributes"=>{"owner_id"=>""}}, "controller"=>"admin/ listings"} For an individual edit/update the management

[Rails] has one relationship through join table - orphaned records on update

2010-04-11 Thread dbkbali
I have set up the following relationships Rails 2.3.5 and on update I am finding that orphaned records are generated. Are my relationships wrong or is there a recommended way to manage these orphaned records on an update. Code is detailed below: class User has_many :management_assignments, :forei

rubyonrails-talk@googlegroups.com

2010-02-22 Thread dbkbali
Problem solved after debugging further realized my select option values were being created in Javascript from an erb file, the problem was created by using <%= %> instead of <%- %> when creating the javascript to send to the client. Learning something new everyday! On Feb 23, 1:05

rubyonrails-talk@googlegroups.com

2010-02-22 Thread dbkbali
reciated. Thx anyway for your suggestion. David On Feb 22, 3:08 pm, Boby Ertanto wrote: > You can try to change "Surabaya & Surrounding Areas" in your database to > "Surabaya & Surrounding Areas" > > Best Regards, > Boby Ertanto > > On Mon, Feb 2

rubyonrails-talk@googlegroups.com

2010-02-21 Thread dbkbali
I am having an annoying problem displaying the labels of a select box correctly where there is an ampersand contained within the label string. On a form being rendered with the form_for helper the collection_select reads data from a Mysql 5.075 database the text stored in the database is "Surabaya

[Rails] Re: Frustrating Problem - Acts As Tree

2010-02-15 Thread dbkbali
Many thanks Michael, it solved the problem, and thanks for the extra advice I need it! as where I am based (Indonesia) no one teaches rails. On Feb 15, 7:39 pm, Michael Pavling wrote: > On 15 February 2010 10:46, David Krett wrote: > > > > > I am a ruby on Rails Novice and I am having an extreme