[Rails] Upload file attachment with rest or xml

2010-09-02 Thread Rodrigo Dominguez
I've a attachment model that has: title: string image: paperclip attribute video: paperclip attribute I want to let the users to upload an attachment by using xml or something like that, all the actions supports xml If they call the controller/action (http://example.net/attachments) with a

[Rails] Re: Upload file attachment with rest or xml

2010-09-02 Thread Rodrigo Dominguez
Any help on this one? -- 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 post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Upload file attachment with rest or xml

2010-09-02 Thread Rodrigo Dominguez
BTW, the code I had for the rails code is pretty simple http://pastie.org/1135382 I'm just looking the way to upload a file by using a third party application (I'm trying to provide an api to customers) Thank you -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Cities spell checker

2010-06-21 Thread Rodrigo Dominguez
I'm totally lost with this feature so I wanted to ask to the community for some links in order to implement this feature I'm trying to make a city spell checker (actually a spell checker that will work for anything at all that I have in the database) So I.e. if I have in my database these two

[Rails] Re: Cities spell checker

2010-06-21 Thread Rodrigo Dominguez
what the people use for doing that Thank you kannav rajeev wrote: try auto complete that may help full for user . something llike this http://github.com/rails/auto_complete On Mon, Jun 21, 2010 at 5:28 PM, Rodrigo Dominguez li...@ruby-forum.comwrote: To post to this group, send email

[Rails] Re: Cities spell checker

2010-06-21 Thread Rodrigo Dominguez
Frederick Cheung wrote: On Jun 21, 1:13�pm, Rodrigo Dominguez li...@ruby-forum.com wrote: Hi, thanks for the tip, but I already have implemented the autocomplete for that field However, my client asked me to let the user to go on without selecting a city from the autocomplete

[Rails] Progressive output on the views

2010-04-08 Thread Rodrigo Dominguez
, and finally throw a javascript redirection at the end of the view. Any idea of how to archive progressive output in rails? Thank you Rodrigo Dominguez ro...@rorra.com.ar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] CRUD pattern for modals

2010-02-10 Thread Rodrigo Dominguez
I have an application, where i.e., I can go to the users controllers, and they manage all the basic actions by rest, like creating, modifying, updating and deleting records. Now, I want to reuse that code, from another part in the web page, so I can list the users on that other controller, and if

[Rails] Re: Sharing controllers/models within a view

2009-07-18 Thread Rodrigo Dominguez
Just Dawson wrote: Hello, please forgive me if this answer is obvious! I'm new to Rails this week. I have two database tables, and the associated scaffolding, controllers, models and views. The first is service_provider, which holds a list of service providers. The second is

[Rails] Re: Button to trigger mailer?

2009-07-17 Thread Rodrigo Dominguez
:nothing = true gets rid of the page not found error, but instead simply displays a blank page once the e-mail has been sent. Hrm... On Jul 16, 11:57�pm, Rodrigo Dominguez rails-mailing-l...@andreas- are you including the js libraries? -- Posted via http://www.ruby-forum.com

[Rails] Re: :Partial and :locals question

2009-07-16 Thread Rodrigo Dominguez
what about using % unless child_index.blank? -% Do something % else -% Do something else % end -% Thank you Rodrigo Dominguez David Sousa wrote: Hello, I want to be able to call a partial with and without a local. E.g.: 1 - %= render :partial = /contacts/phones/create, :locals

[Rails] Re: Button to trigger mailer?

2009-07-16 Thread Rodrigo Dominguez
sinker wrote: My god, I think I was massively inarticulate in that previous post. Apologies. Here's the thing: I can successfully send an e-mail through all of the above by simply calling it like this: %= link_to 'spansend scheduling e-mail/span', {:action = 'scheduled', :id = story}

[Rails] Re: Why does this output to the console?

2009-07-16 Thread Rodrigo Dominguez
Janna Brossard wrote: yes, current_associate.watching_channel_id IS a foreign key to channel.id. But I have not specified it as such in the associate model or the channel model (not sure how -- or if I even need to!) -Janna if the class name is WatchingChannel, the it will work belongs_to