How to make plugin?

Hello there,

I want to develop plugin, i feel every time I make new website I do
LOGIN script, i want to do them for all which include the following
steps:

  • create users table (id, username, password, created_at, update_at)
  • create controller (login, signup, logout)
  • create model (authenticate)
  • create view (login, signup)
  • past few different functions in the application.rb, which can be used
    in the other controllers :slight_smile:

I want to be able to these steps, but I don’t really know how to do it,
I have the files done, the table etc.

Can anyone help me with that :slight_smile:

and Thanks for your help :smiley:

On 3/25/07, Jamal S. [email protected] wrote:

Take a look at the acts_as_authenticated plugin. It may do exactly
what you want, or at least it’ll give you a good place to start.

Pat

Pat M. wrote:

On 3/25/07, Jamal S. [email protected] wrote:

Take a look at the acts_as_authenticated plugin. It may do exactly
what you want, or at least it’ll give you a good place to start.

Pat

well, i wanted to do my own login authenticated plugin, so I can also
learn how to do it :slight_smile: not use another one.

Franco S. wrote:

Hello Jamal

I’m also looking for create my own plugin,
implementing some predefined functionalities.

I just found this short tutorial:
http://railsforum.com/viewtopic.php?pid=9703

Now I want to learn how to have controllers into plugins,
and how to wraps all the classes into modules.

Please, let me know if you step forward.
Thanks.

As you can see I already read that article and posted a comment in the
bottom :slight_smile:

Solution is to do your own solutions :stuck_out_tongue:

I made a new folder, and put all the files related to that plugin, and
whenever I want to reuse the plugin I copy the files to the new web
application :slight_smile:

Jamal, as someone who [at least lately] asks for a lot of help you might
not
want to be so cavalier in telling others “Solution is to do your own
solutions :P”. The Rails community is only as helpful. welcoming, and
rich
as we make it.

RSL

Hello Jamal

I’m also looking for create my own plugin,
implementing some predefined functionalities.

I just found this short tutorial:
http://railsforum.com/viewtopic.php?pid=9703

Now I want to learn how to have controllers into plugins,
and how to wraps all the classes into modules.

Please, let me know if you step forward.
Thanks.

Russell N. wrote:

Jamal, as someone who [at least lately] asks for a lot of help you might
not
want to be so cavalier in telling others “Solution is to do your own
solutions :P”. The Rails community is only as helpful. welcoming, and
rich
as we make it.

RSL

Russell N., I didn’t mean anything bad about that, you misunderstood
what I said.

You helped me a lot and I thank you for that.

What I meant is their was no solution in Rails to do it, so you have to
find your own solution to do it :slight_smile:

I hope this make more sense then the other one :smiley: and thanks again to
you and everyone else who helped me through my problems :slight_smile:

We’ll chalk this one up to the inadequacies of email to express
cheekiness
and humor then. :slight_smile:

RSL

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs