Hey guys, it''ll be kinda silly question, but I was working for two years on my bachelor''s thesis using RoR...but I have never found out, how to do that when I type in the browser the address and port, there will be a homepage shown...is there some easy way? Thanks in advance Jan Kadera -- 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.
You mean setting your routes so that you can tell Rails where your homepage is at when you preview using localhost? In rails 3, do something like this: # Home Page Route root :to => "site#home" # Site Routes match ''/'', :to => "site#home" So when you go to http://localhost:3000, rails will route to your homepage. On Jul 20, 3:03 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey guys, > it''ll be kinda silly question, but I was working for two years on my > bachelor''s thesis using RoR...but I have never found out, how to do that > when I type in the browser the address and port, there will be a homepage > shown...is there some easy way? > > Thanks in advance > Jan Kadera-- 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.
I''ve got rails 2.1 unfortunately. Isn''t there any more peaceful way to do it without declaring war to half of the application by changing routing? btw, my app is available on the address tinyurl.com/skurt, please feel free to check it out. I have made there two controllers: home and Rolldance (rolldance is from some kind of turorial) home have bunch of actions, but there is view only for action wow rolldance have actions both with views index and o_nas What I''m trying to do is simply access those pages and I''m totally unsuccessful :( Jan Kadera 2010/7/21 thereddestruby <ulisesramirezroche-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> You mean setting your routes so that you can tell Rails where your > homepage is at when you preview using localhost? > > In rails 3, do something like this: > > # Home Page Route > root :to => "site#home" > > # Site Routes > match ''/'', :to => "site#home" > > So when you go to http://localhost:3000, rails will route to your > homepage. > > On Jul 20, 3:03 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hey guys, > > it''ll be kinda silly question, but I was working for two years on my > > bachelor''s thesis using RoR...but I have never found out, how to do that > > when I type in the browser the address and port, there will be a homepage > > shown...is there some easy way? > > > > Thanks in advance > > Jan Kadera > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Isn''t there any more peaceful way to do it without declaring war to half of > the application by changing routing?What *are* you talking about? You use routing to match URLs to the content you want to serve. If you''re not getting the results you expect, run `rake routes` to see what''s actually configured. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
joshmckin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Jul-20 23:16 UTC
Re: Deep beginning
http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-routes.htm http://guides.rubyonrails.org/getting_started.html see section 4.2 Although its for 2.3, 2.1 looks to be similar. On Jul 20, 5:21 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve got rails 2.1 unfortunately. > Isn''t there any more peaceful way to do it without declaring war to half of > the application by changing routing? > > btw, my app is available on the address tinyurl.com/skurt, please feel free > to check it out. > I have made there two controllers: home and Rolldance (rolldance is from > some kind of turorial) > home have bunch of actions, but there is view only for action wow > rolldance have actions both with views index and o_nas > What I''m trying to do is simply access those pages and I''m totally > unsuccessful :( > Jan Kadera > > 2010/7/21 thereddestruby <ulisesramirezro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > You mean setting your routes so that you can tell Rails where your > > homepage is at when you preview using localhost? > > > In rails 3, do something like this: > > > # Home Page Route > > root :to => "site#home" > > > # Site Routes > > match ''/'', :to => "site#home" > > > So when you go tohttp://localhost:3000, rails will route to your > > homepage. > > > On Jul 20, 3:03 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hey guys, > > > it''ll be kinda silly question, but I was working for two years on my > > > bachelor''s thesis using RoR...but I have never found out, how to do that > > > when I type in the browser the address and port, there will be a homepage > > > shown...is there some easy way? > > > > Thanks in advance > > > Jan Kadera > > > -- > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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.
"You use routing to match URLs to the content you want to serve." Are you telling me, that the default routing setting do not work like this: my ip: 1.2.3.4 my port: 3000 controller name: c action name: a this implies the address http://1.2.3.4:3000/c/a.html ??? I''m asking, because I believe it work like that which means, when I start to change it, I''ll mess the whole app up. Jan. 2010/7/21 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Isn''t there any more peaceful way to do it without declaring war to half > of > > the application by changing routing? > > What *are* you talking about? > > You use routing to match URLs to the content you want to serve. > > If you''re not getting the results you expect, run `rake routes` to see > what''s actually configured. > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
"If you''re not getting the results you expect, run `rake routes` to see what''s actually configured." skurt@pivnik:~/www/skurt$ rake routes (in /home/skurt/www/skurt) /:controller/:action/:id /:controller/:action/:id.:format Now I see I really don''t want to mess with it :( Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> "You use routing to match URLs to the content you want to serve." > Are you telling me, that the default routing setting do not work like this: > my ip: 1.2.3.4 > my port: 3000 > controller name: c > action name: a > this implies the address http://1.2.3.4:3000/c/a.html > ??? > > I''m asking, because I believe it work like that which means, when I start > to change it, I''ll mess the whole app up. > > Jan. > > > > 2010/7/21 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >> > Isn''t there any more peaceful way to do it without declaring war to half >> of >> > the application by changing routing? >> >> What *are* you talking about? >> >> You use routing to match URLs to the content you want to serve. >> >> If you''re not getting the results you expect, run `rake routes` to see >> what''s actually configured. >> >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- 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.
Well, after a while trying I found a way to do it right. The first time, I created just controller script/generate controller home and then created actions by editing the file app/controllers/home_controller like this: def action1 end def action2 end ... and for every action I created a file like this app/views/home/action.html.erb and it didn''t work (that''s the point where you were suggesting routing) but the only thing I needed was to destroy all the work done and use the command script/generate controller home action1 action2... and voi''la myIP:3000/home works now :) BUT! What I''m trying to figure out now is addressing inside of the app. I''m trying to set up a background for the page but the relative path starting from the route of the app doesn''t work and unfortunately the absolute path doesn''t work either. So where is the root of the relative path? Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> "If you''re not getting the results you expect, run `rake routes` to see > what''s actually configured." > > skurt@pivnik:~/www/skurt$ rake routes > (in /home/skurt/www/skurt) > /:controller/:action/:id > /:controller/:action/:id.:format > > Now I see I really don''t want to mess with it :( > > Jan > > > > 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > "You use routing to match URLs to the content you want to serve." >> Are you telling me, that the default routing setting do not work like >> this: >> my ip: 1.2.3.4 >> my port: 3000 >> controller name: c >> action name: a >> this implies the address http://1.2.3.4:3000/c/a.html >> ??? >> >> I''m asking, because I believe it work like that which means, when I start >> to change it, I''ll mess the whole app up. >> >> Jan. >> >> >> >> 2010/7/21 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> wrote: >>> >>> > Isn''t there any more peaceful way to do it without declaring war to >>> half of >>> > the application by changing routing? >>> >>> What *are* you talking about? >>> >>> You use routing to match URLs to the content you want to serve. >>> >>> If you''re not getting the results you expect, run `rake routes` to see >>> what''s actually configured. >>> >>> -- >>> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >>> twitter: @hassan >>> >>> -- >>> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >> >-- 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.
On Fri, Jul 23, 2010 at 5:22 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Well, after a while trying I found a way to do it right. The first time, I > created just controller > > and it didn''t work (that''s the point where you were suggesting routing) > > but the only thing I needed was to destroy all the work done and use the > command > script/generate controller home action1 action2... > > and voi''la myIP:3000/home works now :)because the routes.rb file has been updated, which you could have easily done manually :-)> BUT! What I''m trying to figure out now is addressing inside of the app. I''m > trying to set up a background for the page but the relative path starting > from the route of the app doesn''t work and unfortunately the absolute path > doesn''t work either. > So where is the root of the relative path?Static resources are typically served from /public/* so e.g. an image in {RAILS_ROOT}/public/images/foo.png would be accessed by the URL http://hostname:port/images/foo.png HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
Thanks a lot :) Jan 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Fri, Jul 23, 2010 at 5:22 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Well, after a while trying I found a way to do it right. The first time, > I > > created just controller > > > > and it didn''t work (that''s the point where you were suggesting routing) > > > > but the only thing I needed was to destroy all the work done and use the > > command > > script/generate controller home action1 action2... > > > > and voi''la myIP:3000/home works now :) > > because the routes.rb file has been updated, which you could have > easily done manually :-) > > > BUT! What I''m trying to figure out now is addressing inside of the app. > I''m > > trying to set up a background for the page but the relative path starting > > from the route of the app doesn''t work and unfortunately the absolute > path > > doesn''t work either. > > So where is the root of the relative path? > > Static resources are typically served from /public/* so e.g. an image in > {RAILS_ROOT}/public/images/foo.png would be accessed by the URL > http://hostname:port/images/foo.png > > HTH, > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
In the tutorial here: http://guides.rubyonrails.org/layouts_and_rendering.html a have found a problem. There is stated: "By default, the file is rendered without using the current layout. If you want Rails to put the file into the current layout, you need to add the :layout => true option." ....but where? I tried the view file and the controller file and neither doesn''t work. Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Thanks a lot :) > Jan > > > 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > On Fri, Jul 23, 2010 at 5:22 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > Well, after a while trying I found a way to do it right. The first time, >> I >> > created just controller >> > >> > and it didn''t work (that''s the point where you were suggesting routing) >> > >> > but the only thing I needed was to destroy all the work done and use the >> > command >> > script/generate controller home action1 action2... >> > >> > and voi''la myIP:3000/home works now :) >> >> because the routes.rb file has been updated, which you could have >> easily done manually :-) >> >> > BUT! What I''m trying to figure out now is addressing inside of the app. >> I''m >> > trying to set up a background for the page but the relative path >> starting >> > from the route of the app doesn''t work and unfortunately the absolute >> path >> > doesn''t work either. >> > So where is the root of the relative path? >> >> Static resources are typically served from /public/* so e.g. an image in >> {RAILS_ROOT}/public/images/foo.png would be accessed by the URL >> http://hostname:port/images/foo.png >> >> HTH, >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- 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.
Well, I figured now, that there is really no need to tell the controller to use the layout, it makes it by default, BUT...I''m still unable to set up the wallpaper. I moved the picture to the directory public/pic/ and add the address pic/darkKnight_wide.jpg to the layout file. But it only affected the index view file, in others there is still the same link for the background, but the background isn''t shown. Well, I figured this one out now also...apparently there is huge difference between those two strings: /pic/picture.jpg pic/picture.jpg Which I guess means there are no relatives paths in rails, right? Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> In the tutorial here: > http://guides.rubyonrails.org/layouts_and_rendering.html > a have found a problem. > There is stated: "By default, the file is rendered without using the > current layout. If you want Rails to put the file into the current layout, > you need to add the :layout => true option." > ....but where? I tried the view file and the controller file and neither > doesn''t work. > > Jan > > > > 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Thanks a lot :) >> Jan >> >> >> 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> On Fri, Jul 23, 2010 at 5:22 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> wrote: >>> > Well, after a while trying I found a way to do it right. The first >>> time, I >>> > created just controller >>> > >>> > and it didn''t work (that''s the point where you were suggesting routing) >>> > >>> > but the only thing I needed was to destroy all the work done and use >>> the >>> > command >>> > script/generate controller home action1 action2... >>> > >>> > and voi''la myIP:3000/home works now :) >>> >>> because the routes.rb file has been updated, which you could have >>> easily done manually :-) >>> >>> > BUT! What I''m trying to figure out now is addressing inside of the app. >>> I''m >>> > trying to set up a background for the page but the relative path >>> starting >>> > from the route of the app doesn''t work and unfortunately the absolute >>> path >>> > doesn''t work either. >>> > So where is the root of the relative path? >>> >>> Static resources are typically served from /public/* so e.g. an image in >>> {RAILS_ROOT}/public/images/foo.png would be accessed by the URL >>> http://hostname:port/images/foo.png >>> >>> HTH, >>> -- >>> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >>> twitter: @hassan >>> >>> -- >>> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >> >-- 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.
On Jul 24, 9:06 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Well, I figured this one out now also...apparently there is huge difference > between those two strings: > /pic/picture.jpg > pic/picture.jpg > Which I guess means there are no relatives paths in rails, right?Absolute and relative paths are indeed very different. This doesn''t have much to do with rails though - it''s just the way that html works. What do you mean by ''there are no relative paths in rails'' ? Fred -- 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.
On Jul 24, 1:06 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Well, I figured this one out now also...apparently there is huge difference > between those two strings: > /pic/picture.jpg > pic/picture.jpg > Which I guess means there are no relatives paths in rails, right?It''s better to use the image_tag helper than code full paths to images in your app. The convention is like this: 1. create an images subdirectory under public in your rails app 2. link to an image via the image_tag helper So in your case you''d create public/images/picture.jpg and link to it in a template like <%= image_tag "picture.jpg" %>. -- miles -- 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.
To Frederick: "What do you mean by ''there are no relative paths in rails'' ?" As I understand the difference, there is some point in the computer directory tree, where is said I''m working, for example /home/myusername/RubyApps/rails/default now if I want to link something inside of that directory, you just type name of the file, because some kind of magic or more than human power will know it should first look there. On the other hand the absolute path is recognized by starting with the only root of the whole computer filesystem, like "/" or "C:\" ...so if I have to use "/" in the pseudo-relative path like this, then I guess I''m using absolute path from the relative point described above, which I absolutely don''t get. And if it really is either of those, I can''t imagine usage of the other one. To cageface: Sir, I may be an idiot, but it doesn''t work. I have pictures in public/pic the picture filename is darkKnight_wide.jpg and I''m reffering to it like this: <body background=<%= image_tag "darkKnight_wide.jpg" %>> and I know nothing abou html, but there is no way that the ''higher power'' translating that ruby babbling into html can know which subdirectory in the public directory it should try. To everyone: I''m trying to follow this tutorial to create a password checker in my app: http://www.devarticles.com/c/a/Ruby-on-Rails/Login-Systems-and-More-with-Ruby-on-Rails/ I followed until like two thirds of article and crashed on this one: "Create an entry in the users table, start the server, and you''ll find that you can log in from *http://localhost:3000/user/login*, and view your account information from *http:// localhost:3000/user/my_account*. " a created a login name and password in the correct database table, but, when I type in to my browser myIP:3000/user/login it''s giving an error message saying that it cant apply something on []. I almost completely don''t know what exactly am I doing, but I looked into the database and found the password there...the exact password, which is I would say lame, isn''t it? There should be hash or something (not ruby-hash, but you probably know). Because of that I''d say that this tutorial is kind of crapy and I wanted to ask anyone if you know about any better, I''d love to read it. Regards Jan 2010/7/24 cageface <milesegan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Jul 24, 1:06 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Well, I figured this one out now also...apparently there is huge > difference > > between those two strings: > > /pic/picture.jpg > > pic/picture.jpg > > Which I guess means there are no relatives paths in rails, right? > > It''s better to use the image_tag helper than code full paths to images > in your app. The convention is like this: > > 1. create an images subdirectory under public in your rails app > 2. link to an image via the image_tag helper > > So in your case you''d create public/images/picture.jpg and link to it > in a template like <%= image_tag "picture.jpg" %>. > > -- > miles > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
cageface: Oh, I get it now, this awesome trick works, but you have to set you app up EXACTLY, like it is said...I don''t get those ''features'' but thanks. Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> To Frederick: > > "What do you mean by ''there are no relative paths in rails'' ?" > As I understand the difference, there is some point in the computer > directory tree, where is said I''m working, for example > /home/myusername/RubyApps/rails/default > now if I want to link something inside of that directory, you just type > name of the file, because some kind of magic or more than human power will > know it should first look there. > On the other hand the absolute path is recognized by starting with the only > root of the whole computer filesystem, like "/" or "C:\" > > ...so if I have to use "/" in the pseudo-relative path like this, then I > guess I''m using absolute path from the relative point described above, which > I absolutely don''t get. > And if it really is either of those, I can''t imagine usage of the other > one. > > > > To cageface: > Sir, I may be an idiot, but it doesn''t work. > I have pictures in public/pic > the picture filename is darkKnight_wide.jpg > and I''m reffering to it like this: > <body background=<%= image_tag "darkKnight_wide.jpg" %>> > and I know nothing abou html, but there is no way that the ''higher power'' > translating that ruby babbling into html can know which subdirectory in the > public directory it should try. > > > > To everyone: > I''m trying to follow this tutorial to create a password checker in my app: > > http://www.devarticles.com/c/a/Ruby-on-Rails/Login-Systems-and-More-with-Ruby-on-Rails/ > I followed until like two thirds of article and crashed on this one: > "Create an entry in the users table, start the server, and you''ll find > that you can log in from *http://localhost:3000/user/login*, and view your > account information from *http:// localhost:3000/user/my_account*. " > a created a login name and password in the correct database table, but, > when I type in to my browser myIP:3000/user/login it''s giving an error > message saying that it cant apply something on []. > I almost completely don''t know what exactly am I doing, but I looked into > the database and found the password there...the exact password, which is I > would say lame, isn''t it? There should be hash or something (not ruby-hash, > but you probably know). > Because of that I''d say that this tutorial is kind of crapy and I wanted to > ask anyone if you know about any better, I''d love to read it. > > Regards > Jan > > > > 2010/7/24 cageface <milesegan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > On Jul 24, 1:06 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Well, I figured this one out now also...apparently there is huge >> difference >> > between those two strings: >> > /pic/picture.jpg >> > pic/picture.jpg >> > Which I guess means there are no relatives paths in rails, right? >> >> It''s better to use the image_tag helper than code full paths to images >> in your app. The convention is like this: >> >> 1. create an images subdirectory under public in your rails app >> 2. link to an image via the image_tag helper >> >> So in your case you''d create public/images/picture.jpg and link to it >> in a template like <%= image_tag "picture.jpg" %>. >> >> -- >> miles >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- 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.
On Jul 24, 5:26 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> To Frederick: > "What do you mean by ''there are no relative paths in rails'' ?" > As I understand the difference, there is some point in the computer > directory tree, where is said I''m working, for example > /home/myusername/RubyApps/rails/default > now if I want to link something inside of that directory, you just type name > of the file, because some kind of magic or more than human power will know > it should first look there. > On the other hand the absolute path is recognized by starting with the only > root of the whole computer filesystem, like "/" or "C:\" > > ...so if I have to use "/" in the pseudo-relative path like this, then I > guess I''m using absolute path from the relative point described above, which > I absolutely don''t get.Almost - you''re looking at it from the point of view of your computer whereas you need to be looking it at from the point of view of the web browser & web server: / doesn''t mean the root of your hard drive, it means the root of your website, which for a rails app is your_rails_app/public. Relative paths are relative to the page the browser is currently sitting on, so if your browser is displaying http://foo.com/blah then an image with path ''pics/logo.png'' will request http://foo.com/blah/pics/logo.png whereas ''/pics/logo.png'' will request http://foo.com/pics/logo.png Fred -- 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.
On Sat, Jul 24, 2010 at 9:26 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On the other hand the absolute path is recognized by starting with the only > root of the whole computer filesystem, like "/" or "C:\"No, "absolute path" in terms of a web app means a path starting with a "/" that indicates the base of your *web application''s root*. It''s usually better to use absolute paths, since the actual context of any given page or page fragment may not be obvious.> Sir, I may be an idiot, but it doesn''t work. > I have pictures in public/pic > the picture filename is darkKnight_wide.jpg > and I''m reffering to it like this: > <body background=<%= image_tag "darkKnight_wide.jpg" %>>Of course it doesn''t work -- you ignored what you were told, which was to put it in /public/images, which is the path an image_tag will create for it. It''s a convention. Rails has lots of them, and learning and adhering to them will make this all much easier :-)> and I know nothing abou html, but there is no way that the ''higher power'' > translating that ruby babblingAnd if you think this whole thing is "ruby babbling" -- why are you even bothering? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
On Jul 24, 5:26 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I almost completely don''t know what exactly am I doing, but I looked into > the database and found the password there...the exact password, which is I > would say lame, isn''t it? There should be hash or something (not ruby-hash, > but you probably know). > Because of that I''d say that this tutorial is kind of crapy and I wanted to > ask anyone if you know about any better, I''d love to read it. >That is indeed a bad way to do things. You might want to look at authlogic which is what a lot of people use these days. restful_authentication also used to be quite popular. Fred -- 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.
I have moved all pictures in the images directory and it works now for the pictures. It unfortunately doesn''t work for background, or I don''t know how to throw it. And one little question...how do I align pictures inserted into web like this? I can''t google it. Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> cageface: > Oh, I get it now, this awesome trick works, but you have to set you app up > EXACTLY, like it is said...I don''t get those ''features'' > but thanks. > > Jan > > > > 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> To Frederick: >> >> "What do you mean by ''there are no relative paths in rails'' ?" >> As I understand the difference, there is some point in the computer >> directory tree, where is said I''m working, for example >> /home/myusername/RubyApps/rails/default >> now if I want to link something inside of that directory, you just type >> name of the file, because some kind of magic or more than human power will >> know it should first look there. >> On the other hand the absolute path is recognized by starting with the >> only root of the whole computer filesystem, like "/" or "C:\" >> >> ...so if I have to use "/" in the pseudo-relative path like this, then I >> guess I''m using absolute path from the relative point described above, which >> I absolutely don''t get. >> And if it really is either of those, I can''t imagine usage of the other >> one. >> >> >> >> To cageface: >> Sir, I may be an idiot, but it doesn''t work. >> I have pictures in public/pic >> the picture filename is darkKnight_wide.jpg >> and I''m reffering to it like this: >> <body background=<%= image_tag "darkKnight_wide.jpg" %>> >> and I know nothing abou html, but there is no way that the ''higher power'' >> translating that ruby babbling into html can know which subdirectory in the >> public directory it should try. >> >> >> >> To everyone: >> I''m trying to follow this tutorial to create a password checker in my app: >> >> http://www.devarticles.com/c/a/Ruby-on-Rails/Login-Systems-and-More-with-Ruby-on-Rails/ >> I followed until like two thirds of article and crashed on this one: >> "Create an entry in the users table, start the server, and you''ll find >> that you can log in from *http://localhost:3000/user/login*, and view >> your account information from *http:// localhost:3000/user/my_account*. " >> a created a login name and password in the correct database table, but, >> when I type in to my browser myIP:3000/user/login it''s giving an error >> message saying that it cant apply something on []. >> I almost completely don''t know what exactly am I doing, but I looked into >> the database and found the password there...the exact password, which is I >> would say lame, isn''t it? There should be hash or something (not ruby-hash, >> but you probably know). >> Because of that I''d say that this tutorial is kind of crapy and I wanted >> to ask anyone if you know about any better, I''d love to read it. >> >> Regards >> Jan >> >> >> >> 2010/7/24 cageface <milesegan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> On Jul 24, 1:06 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> > Well, I figured this one out now also...apparently there is huge >>> difference >>> > between those two strings: >>> > /pic/picture.jpg >>> > pic/picture.jpg >>> > Which I guess means there are no relatives paths in rails, right? >>> >>> It''s better to use the image_tag helper than code full paths to images >>> in your app. The convention is like this: >>> >>> 1. create an images subdirectory under public in your rails app >>> 2. link to an image via the image_tag helper >>> >>> So in your case you''d create public/images/picture.jpg and link to it >>> in a template like <%= image_tag "picture.jpg" %>. >>> >>> -- >>> miles >>> >>> -- >>> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >> >-- 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.
On Sat, Jul 24, 2010 at 9:57 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It unfortunately doesn''t work for background, or I don''t know how to throw > it.What exactly does that mean? How are you trying to set "background"?> And one little question...how do I align pictures inserted into web like > this? I can''t google it.You need to study basic HTML and CSS if you''re going to be doing web apps, I''m afraid. And I''m sure you can easily google up some tutorials on those subjects :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
Frederick: Thank you, it''s much clearer. Unfortunately, since I work with files saved in app/... and the address equals public/... I cannot imagine any case to use relative path :/ Hassan.: I figured it out, but from the example I really wasn''t able to derive that I have to do it that and only that way exactly. And I''m bothering for many reasons...you would probably consider the most interesting one that I don''t want to use web spaces with advertisment (That of course I find one useful ruby webhosting) 2010/7/24 Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > > On Jul 24, 5:26 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I almost completely don''t know what exactly am I doing, but I looked into > > the database and found the password there...the exact password, which is > I > > would say lame, isn''t it? There should be hash or something (not > ruby-hash, > > but you probably know). > > Because of that I''d say that this tutorial is kind of crapy and I wanted > to > > ask anyone if you know about any better, I''d love to read it. > > > > That is indeed a bad way to do things. You might want to look at > authlogic which is what a lot of people use these days. > restful_authentication also used to be quite popular. > > Fred > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
Fred: Thank you, I''ll take a look. Hasan: As I described earlier: <body background=<%= image_tag "darkKnight_wide.jpg" %>> but since my mistake I moved pictures to the images dir...but this still doesn''t work :( And abou studiing html and css...I did, but I do not understand to articles about this stuff, so I learn stuff I need to do and I''m learning it backwards, it works for me. Jan 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Jul 24, 2010 at 9:57 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > It unfortunately doesn''t work for background, or I don''t know how to > throw > > it. > > What exactly does that mean? How are you trying to set "background"? > > > And one little question...how do I align pictures inserted into web like > > this? I can''t google it. > > You need to study basic HTML and CSS if you''re going to be doing > web apps, I''m afraid. And I''m sure you can easily google up some > tutorials on those subjects :-) > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
On Sat, Jul 24, 2010 at 10:06 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> And I''m bothering for many reasons...you would probably consider the most > interesting one that I don''t want to use web spaces with advertisment (That > of course I find one useful ruby webhosting)I have absolutely no idea what you mean by that, but good luck :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
On Sat, Jul 24, 2010 at 10:11 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <body background=<%= image_tag "darkKnight_wide.jpg" %>>The background attribute is deprecated -- you should really use CSS for this.> but since my mistake I moved pictures to the images dir...but this still > doesn''t work :(Did you restart your server? What''s `view source` show you as the path? Are you using a tool like Firebug to examine why the request isn''t working?> And abou studiing html and css...I did, but I do not understand to articles > about this stuff, so I learn stuff I need to do and I''m learning it > backwards, it works for me.If you say so :-) You might want to play around with some static HTML pages a bit to get a better feel for how HTML and CSS work... FWIW, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
I meant I was unable to find ruby webhosting, where could I try to build up web pages in ruby. Even If I found it, it would contain advertisment for being free. So this way I can build my own web on my own computer with ruby and without advertisment. btw. the background ruby code generates this <body background= <img alt="Darkknight_wide" src=" /images/darkKnight_wide.jpg?1229174053<view-source:http://85.71.233.8:3000/images/darkKnight_wide.jpg?1229174053>" /> > which is just weird :( Jan. 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Jul 24, 2010 at 10:06 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > And I''m bothering for many reasons...you would probably consider the most > > interesting one that I don''t want to use web spaces with advertisment > (That > > of course I find one useful ruby webhosting) > > I have absolutely no idea what you mean by that, but good luck :-) > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
try http://www.heroku.com On Sat, Jul 24, 2010 at 1:18 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I meant I was unable to find ruby webhosting, where could I try to build up > web pages in ruby. Even If I found it, it would contain advertisment for > being free. So this way I can build my own web on my own computer with ruby > and without advertisment. > > btw. the background ruby code generates this > <body background= <img alt="Darkknight_wide" src=" > /images/darkKnight_wide.jpg?1229174053" /> > > > which is just weird :( > > Jan. > > > > 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > On Sat, Jul 24, 2010 at 10:06 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >> > And I''m bothering for many reasons...you would probably consider the >> most >> > interesting one that I don''t want to use web spaces with advertisment >> (That >> > of course I find one useful ruby webhosting) >> >> I have absolutely no idea what you mean by that, but good luck :-) >> >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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.
On Sat, Jul 24, 2010 at 10:18 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I meant I was unable to find ruby webhosting, where could I try to build up > web pages in ruby. Even If I found it, it would contain advertisment for > being free.heroku.com has a minimal free plan that doesn''t involve advertising, and it''s very easy to work with.> btw. the background ruby code generates this > <body background= <img alt="Darkknight_wide" > src="/images/darkKnight_wide.jpg?1229174053" /> > > > which is just weird :(No, it''s just wrong. `image_tag` creates a tag for an image, which is not what the background attribute is expecting. You should use your style sheet to set this, e.g. body { background-image: url("/images/darkKnight_wide.jpg"); } -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
I added to .css file this background: /images/darkKnight_wide.jpg aaand it doesn''t work. My problem with css is that it is not part of the source code, so I cant take a look, where in the code is it built in. You may say that it is obvious, but I''m saying I don''t trust obvious, I trust my eyes. I''m sorry on this one, but I really don''t believe that .css is worthed, but if you''ll be so kind and advice me, how background in css works, I''ll be really glad. "Did you restart your server? What''s `view source` show you as the path? Are you using a tool like Firebug to examine why the request isn''t working?" Restart I did indeed. What is `view source` and Firebug I don''t know ...and I don''t want to create new google. I just want it to be simple and work, please. "You might want to play around with some static HTML pages a bit to get a better feel for how HTML and CSS work..." I''d say thats exactly what I''m doing last few days despite what I wanted to do... 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Jul 24, 2010 at 10:11 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > <body background=<%= image_tag "darkKnight_wide.jpg" %>> > > The background attribute is deprecated -- you should really use CSS > for this. > > > but since my mistake I moved pictures to the images dir...but this still > > doesn''t work :( > > Did you restart your server? What''s `view source` show you as the > path? Are you using a tool like Firebug to examine why the request > isn''t working? > > > And abou studiing html and css...I did, but I do not understand to > articles > > about this stuff, so I learn stuff I need to do and I''m learning it > > backwards, it works for me. > > If you say so :-) > > You might want to play around with some static HTML pages a bit to > get a better feel for how HTML and CSS work... > > FWIW, > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
I tried heroku. I wasn''t even able to figure out how to connect to it or do anything with it :( but thanks for advice with the background. Jan 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Jul 24, 2010 at 10:18 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > I meant I was unable to find ruby webhosting, where could I try to build > up > > web pages in ruby. Even If I found it, it would contain advertisment for > > being free. > > heroku.com has a minimal free plan that doesn''t involve advertising, > and it''s very easy to work with. > > > btw. the background ruby code generates this > > <body background= <img alt="Darkknight_wide" > > src="/images/darkKnight_wide.jpg?1229174053" /> > > > > > which is just weird :( > > No, it''s just wrong. `image_tag` creates a tag for an image, which is > not what the background attribute is expecting. > > You should use your style sheet to set this, e.g. > > body { background-image: url("/images/darkKnight_wide.jpg"); } > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
On Sat, Jul 24, 2010 at 10:30 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I added to .css file this > background: /images/darkKnight_wide.jpg > aaand it doesn''t work.Of course it doesn''t work -- it''s not what I showed you.> My problem with css is that it is not part of the source code, so I cant > take a look, where in the code is it built in. You may say that it is > obvious, but I''m saying I don''t trust obvious, I trust my eyes. I''m sorry on > this one, but I really don''t believe that .css is worthed, but if you''ll be > so kind and advice me, how background in css works, I''ll be really glad.What are you talking about? CSS is certainly part of your source code.> What is `view source` and Firebug I don''t knowEvery browser offers the option to view the HTML source of a page you''re looking at it. It''s a basic tool for troubleshooting (and learning). Firebug is a Firefox extension that gives you visibility into a number of areas (CSS, network connections, etc.) and is indispensable for, again, troubleshooting and learning.> ...and I don''t want to create new google. I just want it to be simple and > work, please.It is simple. You need to develop a better understanding. Good luck. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
On Jul 24, 6:06 pm, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Frederick: > Thank you, it''s much clearer. Unfortunately, since I work with files saved > in app/... and the address equals public/... I cannot imagine any case to > use relative path :/ >File system paths are irrelevant, what matters are the URLs browsers use to access stuff - even if the file you''re working on is app/ controllers/posts.rb, that''s just /posts to the web browser. Fred -- 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.
It works now,thanks. So, can I ask how to join the image_tag tag with the information of align of image? Jan 2010/7/24 Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> I tried heroku. I wasn''t even able to figure out how to connect to it or do > anything with it :( > but thanks for advice with the background. > > Jan > > > > 2010/7/24 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > On Sat, Jul 24, 2010 at 10:18 AM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > I meant I was unable to find ruby webhosting, where could I try to build >> up >> > web pages in ruby. Even If I found it, it would contain advertisment for >> > being free. >> >> heroku.com has a minimal free plan that doesn''t involve advertising, >> and it''s very easy to work with. >> >> > btw. the background ruby code generates this >> > <body background= <img alt="Darkknight_wide" >> > src="/images/darkKnight_wide.jpg?1229174053" /> > >> > >> > which is just weird :( >> >> No, it''s just wrong. `image_tag` creates a tag for an image, which is >> not what the background attribute is expecting. >> >> You should use your style sheet to set this, e.g. >> >> body { background-image: url("/images/darkKnight_wide.jpg"); } >> >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >-- 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.
On Sat, Jul 24, 2010 at 12:10 PM, Jan Kadera <honza.kadera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So, can I ask how to join the image_tag tag with the information of align of > image?Go to <http://api.rubyonrails.org/> and look at the entry for image_tag And you might want to bookmark the following 2 urls, as well: <http://www.w3.org/TR/html401/> <http://www.w3.org/TR/CSS21/> HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
On Jul 24, 10:18 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I meant I was unable to find ruby webhosting, where could I try to build up > web pages in ruby. Even If I found it, it would contain advertisment for > being free. So this way I can build my own web on my own computer with ruby > and without advertisment.You will save yourself a lot of time and frustration if you first learn the basics of HTML and CSS before trying to build dynamic websites. You have to learn to walk before you can run. -- miles -- 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.
Guys, I really appreciate your help, but I can''t read those manuals, because they are wrong. Those are written for people like you, who already understands, which is imho needles. For example on that api page, you recommended me for seek out the align tag...it is not there. Well, since I''m not a complete idiot and I knew it should be there, I tried the tag align in the format of examples there and it worked. But I can''t learn like that. I''m no oracle and don''t know what the author meant...ussually. And I''m afraid that stuff like: You don''t use <body background>, you use .css...I think it wont be written anywhere, because in the manual to html will be information, that it is done like the first example and in .css manual will be written that it can be done like the second. Am I wrong? Jan 2010/7/24 cageface <milesegan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Jul 24, 10:18 am, Jan Kadera <honza.kad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I meant I was unable to find ruby webhosting, where could I try to build > up > > web pages in ruby. Even If I found it, it would contain advertisment for > > being free. So this way I can build my own web on my own computer with > ruby > > and without advertisment. > > You will save yourself a lot of time and frustration if you first > learn the basics of HTML and CSS before trying to build dynamic > websites. You have to learn to walk before you can run. > > -- > miles > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.