Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo code? #17

Open
mandym-webdev opened this issue Oct 26, 2014 · 16 comments
Open

Demo code? #17

mandym-webdev opened this issue Oct 26, 2014 · 16 comments
Labels

Comments

@mandym-webdev
Copy link

Hi,
I really want to use inkwell for my project. I'm wondering if you know of any githubs using it so I can take a look at the code so I know where to get started. For example, things like this:

@user.favorite @post
@user.favorite @comment

do they go in the controller or view? Seeing complete code would really help. Thanks!

@salkar
Copy link
Owner

salkar commented Oct 30, 2014

Hi,
Unfortunately, I have not made ​​a demo version yet, but you can ask questions here (or by email).
About your example - it is assumed that it is used in the controllers (or in the models if you want to add something to the feature logic)

@RailsCod3rFuture
Copy link

Can you post a complete solution for the gem? I'd like to implement it into my project.

@salkar
Copy link
Owner

salkar commented Dec 16, 2014

As I have said, there is no open-source demo code now. Or what you mean?

@RailsCod3rFuture
Copy link

I have a pretty good understanding of how your inkwell system works. But, since there are two parts to it. Should I install both to get a fully functional social networking experience? Also, do you have a notifications system built into it. As in, you can see when someone followed you or reblogged your message in a separate view?

@salkar
Copy link
Owner

salkar commented Dec 21, 2014

About two parts - if it is about Inkwell and Inkwell Timeline gems - no, inkwell timeline gem is not required. About notification system - it has not been made yet.

@brendhann
Copy link

I know this is super old but could you suggest how i could start using favorites?

@salkar
Copy link
Owner

salkar commented Mar 10, 2017

@brendhann which version of Rails you are using?

@brendhann
Copy link

rails is 4.2.6 and ruby is 2.2.4p230

@salkar
Copy link
Owner

salkar commented Mar 10, 2017

As far as I remember you can add settings as described at https://github.com/salkar/inkwell#installation.
But keep in mind the last time I tested it with Rails 4.0.
I don't have time to add support for new versions for now.

@brendhann
Copy link

brendhann commented Mar 10, 2017

ok yea i tried to just add @user.favorite @post to my pin show model but it popped up the error
undefined method `favorite' for nil:NilClass
new to rails but i already started on an android app so getting this gem working would be handy
also can you suggest a blog and timeline gem that would be compatible?

@salkar
Copy link
Owner

salkar commented Mar 10, 2017

undefined method `favorite' for nil:NilClass - error that says @user is nil.
If you need only favorites support - you can easier to write it yourself. For sample like here - http://stackoverflow.com/a/13240439/2174582 .

@brendhann
Copy link

ill think about that thanks, thanks for the quick reply. gonna mess around with this abit more and try to figure out what im missing lol. Trying to add it to a pinterest clone type of thing.
http://bdtp.biz:3000/

@salkar
Copy link
Owner

salkar commented Mar 10, 2017

Cool, good luck!

@brendhann
Copy link

hey i got favorites working, trying comments now, do i have to make comments controller and model etc. ?
nice gem once i get it all figured out lol
thanks

@brendhann
Copy link

was thinking i might link my code to help anyone else trying to figure it alll out

@salkar
Copy link
Owner

salkar commented Mar 10, 2017

Model is already exists - https://github.com/salkar/inkwell/blob/master/app/models/inkwell/comment.rb.
As far as I remember you can use comment after add acts_as_inkwell_user to User model. About controller - yes you have to make it, Inkwell does not include controllers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants