Groups
Groups
Sign in
Groups
Groups
rails-br
Conversations
About
Send feedback
Help
Helpers
0 views
Skip to first unread message
Guilherme Ceolin
unread,
Jul 3, 2009, 6:45:45 PM
7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rail...@googlegroups.com
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
rneto167
unread,
Jul 3, 2009, 8:57:04 PM
7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rail...@googlegroups.com
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
<
guic...@gmail.com
>
--
http://rneto167.wordpress.com
https://twitter.com/rneto167
Guilherme Ceolin
unread,
Jul 3, 2009, 9:43:00 PM
7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rail...@googlegroups.com
Sim, muito obrigado.
entao metodos no application controller tem algum nome especifico?
2009/7/3 rneto167
<
rnet...@gmail.com
>
rneto167
unread,
Jul 3, 2009, 9:50:23 PM
7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rail...@googlegroups.com
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
<
guic...@gmail.com
>
Guilherme Ceolin
unread,
Jul 3, 2009, 10:02:47 PM
7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rail...@googlegroups.com
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
<
rnet...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages