I''m trying to get my del.icio.us links to appear in the layout, so it''s throughout the entire application. I have the interface to the API working, I just don''t know where to put the code (in what controller?) and layout to be application wide. I tried putting the code in "application.rb" and then the view stuff in "application.rhtml" but that didn''t work. All of this code works fine - I just don''t know where to put it so that it will show up in a layout that I can use across my application. Any help on this??? Thanks! -- Posted via http://www.ruby-forum.com/.
Bharat Ahluwalia
2006-Jul-19 13:14 UTC
[Rails] RE: Trouble with links in the layout - Help
From: ry an <rheath@ircwv.com>> Subject: [Rails] Trouble with links in the layout - Help > To: rails@lists.rubyonrails.org > Message-ID: <b2d34cc7bbf0aa20bc2796101b06961e@ruby-forum.com> > Content-Type: text/plain; charset=utf-8 > > I''m trying to get my del.icio.us links to appear in the > layout, so it''s > throughout the entire application. I have the interface to the API > working, I just don''t know where to put the code (in what > controller?) > and layout to be application wide. I tried putting the code in > "application.rb" and then the view stuff in > "application.rhtml" but that > didn''t work. > > All of this code works fine - I just don''t know where to put > it so that > it will show up in a layout that I can use across my application. Any > help on this???Application.rhtml should work. What happens when you change that file to show your links? What is the error message that you get? Bharat http://blog.publishedperspectives.com
ry an wrote:> I''m trying to get my del.icio.us links to appear in the layout, so it''s > throughout the entire application. I have the interface to the API > working, I just don''t know where to put the code (in what controller?) > and layout to be application wide. I tried putting the code in > "application.rb" and then the view stuff in "application.rhtml" but that > didn''t work. > > All of this code works fine - I just don''t know where to put it so that > it will show up in a layout that I can use across my application. Any > help on this??? > > Thanks!Seems to be OK. Could u paste ur code? -- Posted via http://www.ruby-forum.com/.
Jean-Etienne wrote:> ry an wrote: >> I''m trying to get my del.icio.us links to appear in the layout, so it''s >> throughout the entire application. I have the interface to the API >> working, I just don''t know where to put the code (in what controller?) >> and layout to be application wide. I tried putting the code in >> "application.rb" and then the view stuff in "application.rhtml" but that >> didn''t work. >> >> All of this code works fine - I just don''t know where to put it so that >> it will show up in a layout that I can use across my application. Any >> help on this??? >> >> Thanks! > > Seems to be OK. Could u paste ur code?I got it. Forgot "before_filter :setup_delicious". Thanks! -- Posted via http://www.ruby-forum.com/.