On Viernes, 21 de Agosto de 2009 07:10:54 CCH escribió: > Hi David > > On Aug 21, 12:15 pm, David Cato <[email protected]> wrote: > > Where is that piece of code and what URL are you hitting? > > login.rhtml > CCH : > <h1>Welcome to the e-CRM !</h1> > <table > > <tr> > <td> > <img src="images/crm.jpg" height="300" > > </td>
Change it to /images/crm.jpg, or remove all img tag and put the image_tag rails helper: <img src="/images/crm.jpg" height="300" /> or <%= image_tag 'crm.jpg', :height => 300 %> You must put /images because when you aren't in /controller, for example in /controller/id, you are trying to get /controller/images/crm.jpg > > http://127.0.0.1:3000/ > > > I tried adding something similar in one of my view templates and I do > > not get any routing errors, either for a file that exists or one that > > does not. Make sure that RAILS_ROOT/public/images/crm.jpg exists, but > > even if it doesn't you shouldn't be getting a routing error. > > CCH : crm.jpg does exist > > > You could always try using <%= image_tag("crm.jpg") %> instead of > > hard-coding the path, but I wouldn't expect that to make any difference > > unless you're running your app from a subdirectory. > > CCH > http://cch4rails.blogspot.com > -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
