Re: [Rails] ActionMailer Linode

2012-05-07 Thread Bruno Meira
Hi Rodrigo, I'll take a look. Thx :D 2012/5/6 Rodrigo Vieira rodrigovieira1...@gmail.com Try the guides: http://guides.rubyonrails.org/action_mailer_basics.html You should also look for your Linode SMTP settings. On 06/05/2012, at 19:21, Bruno Meira goesme...@gmail.com wrote: Hi Guys, I

[Rails] ActionMailer Linode

2012-05-06 Thread Bruno Meira
Hi Guys, I created a mail server at Linode. I would like to configure my rails app to send mails using one of this mail accounts. Does anybody know any tutorial about how to do it? Thx Bruno Meira -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: ActionMailer Linode

2012-05-06 Thread Bruno Meira
I'm using Dovecot -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For

Re: [Rails] Re: plpgsql HEROKU

2012-05-02 Thread Bruno Meira
Ok Kevin, I'll take a look. Thx for the help :D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] plpgsql HEROKU

2012-05-01 Thread Bruno Meira
Hi guys, My application are using some triggers that use plpgsql. That is my first time using HEROKU, so I tried to run rake db:migrate and it sent an error telling that the plpgsql language was not created. Does anybody knows if HEROKU supports this kind of language?? -- Bruno Meira -- You

[Rails] Re: plpgsql HEROKU

2012-05-01 Thread Bruno Meira
I'm using the shared database plan -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] Bluehost - Rails 3

2012-04-27 Thread Bruno Meira
Ok guys, As I can see Bluehost is not a good solution for me. I will take a look better in one of these other providers. Thx :D -- 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

[Rails] Bluehost - Rails 3

2012-04-26 Thread Bruno Meira
Hi Folks, I developed an application using Rails 3.1.3. I would like to deploy it on bluehost(I have one account there) I tried hard to do it, but I could'nt deploy it. Does anyone know how to deploy in this provider??? Thx, Bruno Meira -- You received this message because you are subscribed

Re: [Rails] private 'new' method???

2012-02-24 Thread Bruno Meira
There isn't any private or protected modifier in my class. How can I know if something is monkeypatching my class? thx for reply :D -- 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

Re: [Rails] private 'new' method???

2012-02-24 Thread Bruno Meira
I find the bug!! :D This bug happens because I forgot to Add _mailer suffix to my post mailer class ... -- 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-talk@googlegroups.com. To unsubscribe

Re: [Rails] private 'new' method???

2012-02-24 Thread Bruno Meira
It is a Model class and a Mailer class. But when I created my Post Mailer class I put the same name (I completely forgot to add _mailer suffix) :P My Model class = post.rb My Mailer class = post.rb That's why this weird error was thrown. Mailer class in fact doesn't have constructor(am I right?)

[Rails] private 'new' method???

2012-02-23 Thread Bruno Meira
in console this problem still happens. The funniest thing is because this error only occurs on Post class... ;/ Thx -- Bruno Meira -- 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-talk

[Rails] Re: private 'new' method???

2012-02-23 Thread Bruno Meira
That's the exception Rails console gave me: 1.9.2p290 :035post = Post.new NoMethodError: private method `new' called for Post:Class from /home/bruno/.rvm/gems/ruby-1.9.2-p290/gems/actionmailer-3.1.3/lib/action_mailer/base.rb:455:in `method_missing' from (irb):35 from

[Rails] link_to param body

2012-02-17 Thread Bruno Meira
% -- Bruno Meira -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more

Re: [Rails] check_box_tag

2012-02-15 Thread Bruno Meira
Hi Javier, I think that this approach is correct but I guess that if you use transaction it will be better for your system performance. :D -- 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

Re: [Rails] check_box_tag

2012-02-15 Thread Bruno Meira
Exactly, Using Transactions will be save you some DB connections. It's simple to use it, take a look better in that url... it explains well how to use it. :D -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] gravatar_image_tag

2012-02-15 Thread Bruno Meira
Hi, In my application I'm using gravatar_image_tag to retrieve user's avatar. I would like to show a custom image(registered in my assets directory) in case that user do not have an gravatar account. How could I do it? thx Bruno Meira -- You received this message because you are subscribed

Re: [Rails] Re: gravatar_image_tag

2012-02-15 Thread Bruno Meira
Thx soldier, I will take a look :D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Will_Paginate

2012-02-09 Thread Bruno Meira
:0x007f94581e7848 How can I fix it? Thx Bruno Meira -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk

Re: [Rails] Will_Paginate

2012-02-09 Thread Bruno Meira
Hi Walter, I will take a look in this solution and in this Kamirami Thx for the answer ;D -- 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-talk@googlegroups.com. To unsubscribe from this

Re: [Rails] Will_Paginate

2012-02-09 Thread Bruno Meira
First time using Kaminari... But it seems to be a good gem. Thx for the tip ;D -- 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-talk@googlegroups.com. To unsubscribe from this group, send

[Rails] Why use rails helpers?

2012-01-16 Thread Bruno Meira
question is: Is a good Idea use this kind of helpers or create HTML code by myself? Thx. Bruno Meira -- 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-talk@googlegroups.com. To unsubscribe from

Re: [Rails] Why use rails helpers?

2012-01-16 Thread Bruno Meira
Thx for your reply Walber. :D That's exactly the point that is my question. The helper will be constructed at view time, isn't it? If it was at application start time, how ruby syntaxes that involves iteration will works? . Example: @users.each do |user| f.select_tag ... . Well, I'm not

Re: [Rails] Why use rails helpers?

2012-01-16 Thread Bruno Meira
*Walter -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options,

Re: [Rails] Why use rails helpers?

2012-01-16 Thread Bruno Meira
Thx Guys, I understand. Well, as I see this overload is small compared with the benefits of using these helpers. :D -- 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-talk@googlegroups.com. To

Re: [Rails] Daily Routine

2011-12-31 Thread Bruno Meira
Hmmm Thx... I will take a look in this whenever. It's seems easy to use. :D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email

[Rails] Daily Routine

2011-12-30 Thread Bruno Meira
Hi guys, I was wondering if sb could guide me. I want to create a thread that was started with rails server start up. This Thread does some database update every day (automatically). Sb knows where can I find some materials about it? Thx Bruno Meira -- You received this message because you

Re: [Rails] Daily Routine

2011-12-30 Thread Bruno Meira
sb = somebody (Sorry, English is not my native language ;/ ) Well, I'm using Debian. I want to run this task at the end of the day(This day could be given by the time in my server). This task will do some updates in my database. -- You received this message because you are subscribed to the

Re: [Rails] Daily Routine

2011-12-30 Thread Bruno Meira
Michael, It seems that this RailsCron gem is what I've been looking for. :D I will take a look in it. Thx :D -- 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-talk@googlegroups.com. To

Re: [Rails] Daily Routine

2011-12-30 Thread Bruno Meira
I will try using this gem, If it not works properly or overload my application I will try using another approach. Thx a lot, Before your answers I didn't know how could I start doing this activity. :D -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] Re: Add params to link :method=POST

2011-12-27 Thread Bruno Meira
I found the answer I fixed this problem using: $(#addContactsToUser).bind(ajax:before, function() { $(this).data('params', { test: 'bar' }); }); As you can notice I insert post params before send my request. This solution works ok ;D Thx -- You received this message because you are

Re: [Rails] Is it possible to manage four models in a form?

2011-12-26 Thread Bruno Meira
Hey, Take a look at fields_for helper. This helper might help you. :D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Add params to link :method=POST

2011-12-26 Thread Bruno Meira
Hi Guys, I hava a link that send via ajax some data. In this link I want to insert some params... How can I do this? thx :D Bruno Meira -- 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-talk

[Rails] Re: Add params to link :method=POST

2011-12-26 Thread Bruno Meira
I'm using link_to helper -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.

Re: [Rails] Is it possible to manage four models in a form?

2011-12-26 Thread Bruno Meira
Hi Marco, If I understand your question, Do you want to fill in one form many models. Am I right? If your question is this you can use fields_for to apply it. Check something similar in http://railscasts.com/episodes/73-complex-forms-part-1 :D -- You received this message because you are

Re: [Rails] Is it possible to manage four models in a form?

2011-12-26 Thread Bruno Meira
Sorry, I made a mistake... Your name is Mauro and not Marco. ;/ -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] call partial by jquery

2011-12-23 Thread Bruno Meira
:partial='shared/user_contacts',:locals={:f=f},:object=resource.user_contacts %); } ); -- Bruno Meira -- 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-talk@googlegroups.com. To unsubscribe

Re: [Rails] call partial by jquery

2011-12-23 Thread Bruno Meira
No errors appears just a pure html is inserted in div: %=render :partial='shared/user_contacts',:locals={:f=f},:object=resource.user_contacts % -- 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

Re: [Rails] call partial by jquery

2011-12-23 Thread Bruno Meira
the html is similar of the inserted partial in div -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] call partial by jquery

2011-12-23 Thread Bruno Meira
H Ok, I will try do this using an ajax call... But How can I pass object references using an ajax call? Is it possible in rails or I need pass object attributes by JSON? Thx :D -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] call partial by jquery

2011-12-23 Thread Bruno Meira
Ok!! I will take a look better in these parameters. I'm using default chrome developers js debug. Is Firebug better? thx for the help ;D -- 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

Re: [Rails] Re: Custom Devise Controller

2011-12-21 Thread Bruno Meira
Hi Halisson, Thx for the help. Well, I found yesterday a solution for this problem. My solution was to create a custom controller that inherits from Devise::RegistrationsController. This controller override update and edit methods doing whatever I want to do. :D. If you do this solution you need

[Rails] Custom Devise Controller

2011-12-20 Thread Bruno Meira
Hi Guys, I was wondering if sb could help me. I have the following problem: -I want to create a complex form using railscast tutorial ( http://railscasts.com/episodes/73-complex-forms-part-1). Well, to perform this I need to update my controller(in this case the controller responsible to

Re: [Rails] Custom Devise Controller

2011-12-20 Thread Bruno Meira
Hi Greg. I will take a look in this session. Thx for the help:D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Image preview paperclip

2011-11-20 Thread Bruno Meira
Hey guys, I was trying to create a preview image using paperclip. Is it possible? If yes, sb knows where can I find some post about it?? If no, What gem can I use to create preview images? Bruno Meira -- You received this message because you are subscribed to the Google Groups Ruby on Rails

Re: [Rails] Question about autocomplete

2011-10-27 Thread Bruno Meira
Sorry, I will ask on aptana forum Thx ;D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Question about autocomplete

2011-10-26 Thread Bruno Meira
Hi guys, I'm new on RoR and I started to develop with this meta-framework on Aptana3. While I'm trying to improve my skills in Rails a question came to my head Is there any way to configure autocomplete of rails commands in Aptana3? Bruno Meira -- You received this message because you

[Rails] Re: Routing Question

2011-09-01 Thread Bruno Meira
h, That's what I do to fix my routing. I guess that my question generated a little confusion ;/. Sorry for any incovenience Thx all -- 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

[Rails] Routing Question

2011-08-31 Thread Bruno Meira
I have the following problem: - I have a controller called UsersController and I need to restrict the show URL to use only numbers, How can I do that? my routes.rb has this line: resources :users, :except=[:destroy] How I add this constraint in this line? I know that there is a command

[Rails] Re: Routing Question

2011-08-31 Thread Bruno Meira
I do like Conrad said and the code works well. Thx ;D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Routing Question

2011-08-31 Thread Bruno Meira
My constraint stayed like that: :constraints = { :id = / [1-9]\d*/ } -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Routing Question

2011-08-31 Thread Bruno Meira
Hi 7stud, I wanted a URL like that: /users/:id, where :id could only be one or more integers, actually the user id. I don't have in mind any case that this line could'nt be resolve. Could you give me an example? Thx ;D -- You received this message because you are subscribed to the Google Groups

[Rails] Question about query

2011-08-18 Thread Bruno Meira
Hi guys, I have the following problem: In my application there is 3 entities that have this relationship: -1 post has many comments -1 comment belongs to one user and to one post -1 comment could be voted by many users My problem is how can I make a query to search for the best rated comment, in

[Rails] Re: JQuery dialog not works

2011-08-16 Thread Bruno Meira
Wooow, I completely forgot to include jQueryUI. Now it works! Thx a lot :D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email

[Rails] JQuery dialog not works

2011-08-15 Thread Bruno Meira
Hi guys, I installed JQuery on my rails application, I tested some functions like $(#some_elem).attr(id), and it works well. So, I think that my file was corrected installed. My problem is this: - Everytime that I use JQuery command to create I dialog, this command doesn't works. One example is:

[Rails] Install Ruby 1.9.2 and rails

2011-08-11 Thread Bruno Meira
I tried everything to install this version of ruby and rails 3 in my s.o. All the the tutorials that I found don't work. Sb know how to install this version of RoR in my S.O. I'm using Debian. Thx ;D -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Install Ruby 1.9.2 and rails

2011-08-11 Thread Bruno Meira
I already tried it. But the ruby -v only works in non-root mode and rails -v doesn't work in any mode ;/ -- 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-talk@googlegroups.com. To unsubscribe

[Rails] Re: Install Ruby 1.9.2 and rails

2011-08-11 Thread Bruno Meira
yeah, I already type rvm | head -1, and everything works good. I installed ruby using rvm. rvm install 1.9.2. It works well but when I type ruby -v in console, if I'm on sudo mode it shows me a message telling me that this command does not find. Otherwise if I'm not on sudo mode it works well. I

[Rails] Re: Install Ruby 1.9.2 and rails

2011-08-11 Thread Bruno Meira
Now it works! I follow again some steps of one blog and it works! all the time that I need to use rake db:migrate I type rvm rake db:migrate isn't it? ruby -v doesn't appears in root mode, but if it works is not a problem :P thx for the help :D -- You received this message because you are

[Rails] Re: Install Ruby 1.9.2 and rails

2011-08-11 Thread Bruno Meira
Thx for the help guys! I will read more about rvm and try to follow the steps of rahul's blog :D -- 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-talk@googlegroups.com. To unsubscribe from

[Rails] Helpers X Partial

2011-08-09 Thread Bruno Meira
Well, I was reading Agile Web Development book and one question appeared in my head. When exactly I use partial and when exactly I use helper. As the book says we could create html code in a shared helper, so Why we need to use partial or layout instead of on shared helper? -- You received this

[Rails] Re: Helpers X Partial

2011-08-09 Thread Bruno Meira
now I understand Thx ;D -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.

[Rails] Re: Question About Forms

2011-08-07 Thread Bruno Meira
Hi Perry, Thanks for help me, I will try to follow your tips ;D May I ask you another question? If yes, my question is: Is a good practice in this page has only one BIG form that treat all the actions and this action has a lot of (if params[:button_name]), or has many forms responsible to

[Rails] Question About Forms

2011-08-06 Thread Bruno Meira
Hey everybody, I'm new on RoR and I was wondering with sb could help me. I have one page that interacts with a lot of controllers and actions, so I need to create many forms(one per action). Example: In this page I send message to user, make one vote in one post, remove one post. So I create one