Hey, i''m trying to add the facebook javascript SDK to my rails app. How do i do that in the application.html.erb file? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-06 06:20 UTC
Re: How to add facebook javascript sdk to rails app
Mark Lohstroh wrote in post #966398:> Hey, i''m trying to add the facebook javascript SDK to my rails app. How > do i do that in the application.html.erb file?Just refer to it like you would any other JS file. Rails doesn''t come into the issue really. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ok, then I''m still not sure how to add them. I included them in the public/javascript/ directory and i''m not sure how to tell ruby to use them in the application.html.erb file. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-06 18:12 UTC
Re: How to add facebook javascript sdk to rails app
Please quote when replying. Mark Lohstroh wrote in post #966605:> Ok, then I''m still not sure how to add them. I included them in the > public/javascript/ directory and i''m not sure how to tell ruby to use > them in the application.html.erb file.Do you know how to include references to JavaScript files in HTML in general? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, barely, but i thought with rails that you had to include it in the application.html.erb file here <%= javascript_include_tag :defaults, then add whatever you need here %> but i''m not sure what the syntax to add an additional javascript library is. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-06 18:30 UTC
Re: How to add facebook javascript sdk to rails app
Again: please quote when replying! Mark Lohstroh wrote in post #966611:> Yes, barely,OK, then go review your basic HTML syntax. Use of <script> tags is elementary and you should have no trouble with it.> but i thought with rails that you had to include it in the > application.html.erb fileNot unless you want it on every page. It can go anywhere you like, as long as it shows up in the generated HTML where you want it to. In other words: here as in other Web development, think about what you want in the generated HTML and work backwards from there.> here <%= javascript_include_tag :defaults, > then add whatever you need here %> but i''m not sure what the syntax to > add an additional javascript library is.See the docs for the javascript_include_tag method. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hello Mark, I think Facebooker is your choice: Find it here: https://github.com/mmangino/facebooker The API documentation: http://facebooker.rubyforge.org/ Some tutorials on it: https://github.com/digidigo/facebooker-tutorial Check this: http://apps.facebook.com/facebooker_tutorial/ (for me currently it''s not working...) Important: wanted to buy a book about if from PragProg, but they said it ouf of date, so don''t buy it! ;) Write me in private, if you find other/better resource, I''m also interested in it. Good luck, Zoltán On Dec 6, 4:11 am, Mark Lohstroh <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hey, i''m trying to add the facebook javascript SDK to my rails app. How > do i do that in the application.html.erb file? > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-06 19:48 UTC
Re: How to add facebook javascript sdk to rails app
Please quote when replying. Zoltan Gero wrote in post #966633:> Hello Mark, > I think Facebooker is your choice: > > Find it here: https://github.com/mmangino/facebooker[...] It may be, but the OP is asking a different question. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote in post #966636:> It may be, but the OP is asking a different question.Yes i am, and i''m using a different gem called Koala. https://github.com/arsduo/koala I wanted something a bit easier to work with than facebooker. the only downside to koala is that it makes you do some things manually. Which is why i need facebook''s javascript SDK. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- HowTo; Rails 3, having Tabs that load content via jQuery ... No Page Refesh
- has_many through , or habtm , using form
- I've decided to use Rails... (I hope I made the right decision).
- Authlogic Password confirmation is too short Error. NEED HELP.
- acts_as_list / acts_as_tree / acts_as_nested_set - which one