Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Geradores
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
  7 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, 10:26 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Fri, 3 Jul 2009 23:26:27 -0300
Local: Fri, Jul 3 2009 10:26 pm
Subject: Geradores

Olá

estou pesquisando sobre como fazer geradores, e me deparei com uma duvida:

é possivel criar entradas de banco de dado com geradores?

pensei em fazer com templates, algo do tipo::

---------------------------
GenerageUser.rb

User.new(:name => 'teste')

--------------------------

porem isso nao retornaria nada, entao nao tem como usar um

t.template 'arquivo'

tem? ou estou errado?

A ideia é gerar Regras de acesso, algo do tipo:

script/generate Roles Modelo

e ele gera entradas na tabela de Roles, relativa as permissoes. o sistema
inteiro é meio complexo para explicar agora.

--
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.
Rafa - www.cearaonrails.org  
View profile   Translate to Translated (View Original)
 More options Jul 3, 11:00 pm
From: "Rafa - www.cearaonrails.org" <rafas2el...@gmail.com>
Date: Sat, 4 Jul 2009 00:00:16 -0300
Local: Fri, Jul 3 2009 11:00 pm
Subject: Re: [rails-br] Geradores

Escreve um plugin =)

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


    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, 11:08 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Sat, 4 Jul 2009 00:08:48 -0300
Local: Fri, Jul 3 2009 11:08 pm
Subject: Re: [rails-br] Re: Geradores

hum,
mas a ideia é executar varias vezes..
por ex, para cada modelo q eu criar, eu kero criar as regras tambem.
tem como eu fazer um plugin pra isso?

2009/7/4 Rafa - www.cearaonrails.org <rafas2el...@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.
Vinicius Luiz  
View profile   Translate to Translated (View Original)
 More options Jul 4, 11:35 am
From: Vinicius Luiz <mcp.vinic...@gmail.com>
Date: Sat, 4 Jul 2009 12:35:45 -0300
Local: Sat, Jul 4 2009 11:35 am
Subject: Re: [rails-br] Re: Geradores

faz um rake no plugin
att,

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

--
att,

Vinicius Luiz
Skype/Yahoo: vinicius.luiz
MSN: vinicius...@hotmail.com
Gtalk: mcp.vinic...@gmail.com
Twitter: http://twitter.com/vinicius_luiz

----------------------------------------------

           Analista Desenvolvedor - TI
CETAM Ltda. - Centro de Tecnologia da Amazônia

when there is no place in hell, the dead walked the earth!


    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 4, 12:27 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Sat, 4 Jul 2009 13:27:05 -0300
Local: Sat, Jul 4 2009 12:27 pm
Subject: Re: [rails-br] Re: Geradores

hum, é uma ideia!
vou tentar.
valeu!

2009/7/4 Vinicius Luiz <mcp.vinic...@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.
Rodrigo Urubatan Ferreira Jardim  
View profile   Translate to Translated (View Original)
 More options Jul 4, 2:40 pm
From: Rodrigo Urubatan Ferreira Jardim <uruba...@gmail.com>
Date: Sat, 4 Jul 2009 15:40:28 -0300
Local: Sat, Jul 4 2009 2:40 pm
Subject: Re: [rails-br] Re: Geradores

a forma correta de fazer isto é fazer o generator criar uma migration que
adiciona os dados que tu quer no banco :D
mas uma task do Rake também é utilizável :D

Rodrigo Urubatan Ferreira Jardim
rodr...@urubatan.com.br
Visite meu blog: http://www.urubatan.com.br
Blog em ingles: http://www.urubatan.info

Melhor livro de RoR do Brasil: http://livro.urubatan.com.br

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


    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 4, 3:15 pm
From: Guilherme Ceolin <guiceo...@gmail.com>
Date: Sat, 4 Jul 2009 16:15:54 -0300
Local: Sat, Jul 4 2009 3:15 pm
Subject: Re: [rails-br] Re: Geradores

eu pensei em fazer a migration, mas realmente estava pensando do jeito
errado.

um rake é muito mais apropriado pro q eu to fazendo.

Muito obrigado a todos.

2009/7/4 Rodrigo Urubatan Ferreira Jardim <uruba...@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