Question

I'm new to here an to Rails so excuse any dumbness on my part.

I'm trying to do something really simple and can't seen to find a guide that's up to date and properly demonstrates how to do this.

I've written the app described in the official ruby on rails tutorial: http://edgeguides.rubyonrails.org/getting_started.html

Now I want to take one of the models, say Tags and make a gem out of that. How would I achieve this? I've read some on rails Engines but couldn't really figure out what goes where and mostly what the generators would look like.

I want to be able to write another app now, such as something flickr styled and by adding the new Tags gem to the Gemfile and having a

:has_many tags

In the picture model I've added a tags mechanism to all my pictures.

Any help would be greatly appreciated!

Was it helpful?

Solution

Welcome! Glad you liked the getting started guide, I then shall guide you to the (yet unreleased) engines guide.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top