1

I've installed social_stream according to the README ( https://github.com/ging/social_stream ) and it works fine, however, I'd like to have the code in my app/ directory and the code isn't there.

The same question arises for Devise and other gems. When I install it, I'd like to have access to the controllers, models, views, etc but it seems nothing is in the app/.

What do I have to do in order to put the code there and being able to change it as I'd like? Or, access it in other folder.

Thank you

Pedro Rolo
  • 28,273
  • 12
  • 60
  • 94
donald
  • 23,587
  • 42
  • 142
  • 223

5 Answers5

2

Here is the url that explain how to change the views https://github.com/ging/social_stream/wiki/How-to-change-controllers%2C-models-and-views

diego
  • 36
  • 1
  • social_stream is an engine. That means you just have to take a copy of the code (github or gem unpack) into a temp folder and simply copy the file to its corresponding location in your application and make changes. – Ram on Rails Jan 25 '13 at 14:18
1

"gem which social_stream" tells me the place where the gem is installed so I can change the code.

donald
  • 23,587
  • 42
  • 142
  • 223
0

I don't know these plugins specifically, but Rails plugins in general get put in vendor/plugins.

Chowlett
  • 45,935
  • 20
  • 116
  • 150
0

AFAIK, they are within vendor folders.

Unless you have a good explanation, you should not put the addon within same app folder.

Imagine if social_stream gets upgraded and new features are released, you would be lost.

Rod
  • 401
  • 2
  • 9
  • Thanks. But I don't quite understand how I can change the views. Social_stream is a social network (à la facebook) but I imagine I could be able to change the views to fit what I want. – donald Dec 20 '10 at 12:27
  • hummmm....I don't know custom guidelines for social_stream. Maybe you could branch it in git and start doing your custom...try to contact who's developing it – Rod Dec 20 '10 at 12:30
-1

With Bundler you can freeze all your gems in your directory. You can try that.

Having the file in your app directory is not really a good advice.

shingara
  • 46,608
  • 11
  • 99
  • 105