[Rails] Re: executing a generator on the browser

2009-02-10 Thread Rey9999
ve run the command? Regards, Rey On 10 Feb, 15:48, bbtosurf wrote: > Hello Rey and thanks for your answer. This generator belongs to a gem. > So the idea is that when a user is browing my website and click on a > specific button this generator should be executed and directory of > f

[Rails] Re: Active Record Associations

2009-02-10 Thread Rey9999
(without id) which will contain, for each record, a couple of id identifying one coupling (user-computer for one table, user-phone for the other). have a look at: http://wiki.rubyonrails.org/rails/pages/has_and_belongs_to_many for naming conventions. Regards, Rey On 10 Feb, 15:31, James Bond

[Rails] Re: executing a generator on the browser

2009-02-10 Thread Rey9999
I'm not sure of what you're asking, but if this 'generator' is an application residing on the server running your web application, you can call it using the ruby command system('executable_name'). regards, rey On 10 Feb, 01:01, bbtosurf wrote: > Hi >

[Rails] weird behaviour of a Web Service

2009-02-10 Thread Rey9999
[all the attributes here]) end but in this case, the mobile application gives me a "FormatException" error. I cannot understand why, even if I'm returning a Role object in both cases, I get two different error messages! Where or what a

[Rails] strange bug in has_and_belongs_to_many

2008-11-07 Thread Rey9999
ildings [... do something with the buildings...] end This won't work anymore; Rails keeps telling me there's no such method as 'buildings' for class 'Job'. it's almost as if collecting the Jobs from a Building through HABTM, Rails cannot 'see' wh