rails gem share_counts GET method on object?

Posted by jaqbyte on Stack Overflow See other posts from Stack Overflow or by jaqbyte
Published on 2012-11-24T23:00:09Z Indexed on 2012/11/24 23:03 UTC
Read the original article Hit count: 172

Filed under:
|
|
|

created the first rails app! excinting! for two weeks now I did Zombie, rubymonk etc. I love it! I used scaffold form url:string and included the gem share_counts.

rails c:

f = form.first
ShareCounts.twitter f.url

works!

but... I have trouble to write the controller and the view!

For you experienced railies this is probably a silly question, and probably only 5 lines of code, but for me thats a big step learning RoR!

I am very thankful if someone could help how I can show the count next to the "url" field.

Thank you so much!!!

joh

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about mvc