Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Helpers
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guilherme Ceolin  
View profile   Translate to Translated (View Original)
 More options Jul 3, 6:45 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Fri, 3 Jul 2009 19:45:45 -0300
Local: Fri, Jul 3 2009 6:45 pm
Subject: Helpers

Galera..

Tem alguma diferença colocar um helper no Application_controller.rb e
colocar no application_helper.rb ?

qual seria o lugar correto de colocar?

Obrigado!

--
Guilherme A. Ceolin
Engenharia de Computação - 6º Semestre
Diretor Acadêmico- CAECOMP
Representante Discente no Conselho - CEATEC


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rneto167  
View profile   Translate to Translated (View Original)
 More options Jul 3, 8:57 pm
From: rneto167 <rneto...@gmail.com>
Date: Fri, 3 Jul 2009 21:57:04 -0300
Local: Fri, Jul 3 2009 8:57 pm
Subject: Re: [rails-br] Helpers

Helpers vão no application_helper.
Helpers retornam HTML.

Métodos para controller não retornam HTML. Retornam objeto(s).

:)

Espero ter sido claro.

2009/7/3 Guilherme Ceolin <guiceo...@gmail.com>

--
http://rneto167.wordpress.com
https://twitter.com/rneto167

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guilherme Ceolin  
View profile   Translate to Translated (View Original)
 More options Jul 3, 9:43 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Fri, 3 Jul 2009 22:43:00 -0300
Subject: Re: [rails-br] Re: Helpers

Sim, muito obrigado.

entao metodos no application controller tem algum nome especifico?

2009/7/3 rneto167 <rneto...@gmail.com>

--
Guilherme A. Ceolin
Engenharia de Computação - 6º Semestre
Diretor Acadêmico- CAECOMP
Representante Discente no Conselho - CEATEC

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rneto167  
View profile   Translate to Translated (View Original)
 More options Jul 3, 9:50 pm
From: rneto167 <rneto...@gmail.com>
Date: Fri, 3 Jul 2009 22:50:23 -0300
Local: Fri, Jul 3 2009 9:50 pm
Subject: Re: [rails-br] Re: Helpers

Métodos em ruby são na forma: nome_metodo_etc
O nome deve refletir o que o método faz. Exemplo:

def did_login?
  redirect_to :controller => :login unless session[:logged] == true
end

Abraços.

2009/7/3 Guilherme Ceolin <guiceo...@gmail.com>

--
http://rneto167.wordpress.com
https://twitter.com/rneto167

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guilherme Ceolin  
View profile   Translate to Translated (View Original)
 More options Jul 3, 10:02 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Fri, 3 Jul 2009 23:02:47 -0300
Local: Fri, Jul 3 2009 10:02 pm
Subject: Re: [rails-br] Re: Helpers

sim sim..
so achei q tivec um nome especial no rails..

acho q intendi.

acabei colocando um metodo no model mesmo, era relativo ao um deles.

Obrigado.

2009/7/3 rneto167 <rneto...@gmail.com>

--
Guilherme A. Ceolin
Engenharia de Computação - 6º Semestre
Diretor Acadêmico- CAECOMP
Representante Discente no Conselho - CEATEC

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google