I''m new in RoR:) I have controller and view (/app/controllers/greeting_controller.rb and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn''t match). greeting_controller.rb source: class GreetingController < ApplicationController def index @message = "Hello world!" end end index.rhtml source: <html> <head><title>test</title></head> <body> <p><%= @message %></p> </body> </html> and html output is exact copy of index.rhtml * i''m working on macOS 10.6.4 please help!!)) -- 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.
Quoting Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> I''m new in RoR:) > > I have controller and view (/app/controllers/greeting_controller.rb > and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn''t match). >You don''t say which version of Rails you are using, so I will assume 2.x. If 1.x or 3.x, ignore this reply. greeting_controller.rb and index.rhtml look fine. But they are not following Rails naming conventions, controller names are plural, i.e., greetings_controller.rb and /app/views/greetings/. index.rhtml is old style naming, preferred current practice is index.html.erb. These two changes may be enough to solve your problem. I don''t understand the last bit of the sentence above. Please expand what you mean by "/.erb/.html.erb - doesn''t match". Do you mean that /app/view/greeting/index.erb and /app/view/greeting/index.html.erb are ignored by the template engine? HTH, Jeffrey -- 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.
rename /app/views/greeting/index.rhtml to ...../index.html.erb -- 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.
> I don''t understand the last bit of the sentence above. Please expand whatyou> mean by "/.erb/.html.erb - doesn''t match". Do you mean that > /app/view/greeting/index.erb and /app/view/greeting/index.html.erb areignored> by the template engine?Yes! It doesn''t make sense. I''m using 2.x version. Now controller name is Greetings, and view file name is index.html.erb But the problem hasn''t been solved :( 2010/7/3 Fernando Perez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> rename /app/views/greeting/index.rhtml to ...../index.html.erb > -- > 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-/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 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> I don''t understand the last bit of the sentence above. Please expand what >> you >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb are >> ignored >> by the template engine? > > Yes! > It doesn''t make sense. > I''m using 2.x version. > Now controller name is Greetings, and view file name is index.html.erb > But the problem hasn''t been solved :(Please tell us the current filenames and contents again to make sure of what you have done. Have you removed all the old files? Rails has a habit of loading files that you have left lying around by accident. What exactly is the symptom now seen? Colin> > > 2010/7/3 Fernando Perez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> >> >> rename /app/views/greeting/index.rhtml to ...../index.html.erb >> -- >> 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. >> > > -- > 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 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.
app/ controllers/ application_controller.rb greetings_controller.rb helpers/ application_helper.rb greetings_helper.rb models/ photo.rb views/ greetings/ index.html.erb layouts/ greetings_controller.rb: class GreetingsController < ApplicationController def index @mes = ''test'' end end index.html.erb <p><%= @mes %></p> html ouput (http://localhost:3000/greetings/ or http://localhost:3000/greetings/index/): <p><%= @mes %></p> Why it''s so hard?! :) No bug report.. Nothing.. 2010/7/5 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I don''t understand the last bit of the sentence above. Please expand > what > >> you > >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that > >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb are > >> ignored > >> by the template engine? > > > > Yes! > > It doesn''t make sense. > > I''m using 2.x version. > > Now controller name is Greetings, and view file name is index.html.erb > > But the problem hasn''t been solved :( > > Please tell us the current filenames and contents again to make sure > of what you have done. Have you removed all the old files? Rails has > a habit of loading files that you have left lying around by accident. > What exactly is the symptom now seen? > > Colin > > > > > > > 2010/7/3 Fernando Perez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > >> > >> rename /app/views/greeting/index.rhtml to ...../index.html.erb > >> -- > >> 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-/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-/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 5 July 2010 09:42, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> app/ > > controllers/ > > application_controller.rb > > greetings_controller.rb > > helpers/ > > application_helper.rb > greetings_helper.rb > > models/ > > photo.rb > > views/ > > greetings/ > > index.html.erb > > layouts/ > > > greetings_controller.rb: > class GreetingsController < ApplicationController > def index > @mes = ''test'' > end > end > index.html.erb > <p><%= @mes %></p> > html ouput (http://localhost:3000/greetings/ > or http://localhost:3000/greetings/index/): > <p><%= @mes %></p> > > Why it''s so hard?! :) > No bug report.. Nothing..Could you avoid top posting please, it makes it more difficult to follow the thread. What do you see in development.log? Which version of rails are you using? You said 2.x but that covers a lot of versions. Colin> > 2010/7/5 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> >> On 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> I don''t understand the last bit of the sentence above. Please expand >> >> what >> >> you >> >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that >> >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb are >> >> ignored >> >> by the template engine? >> > >> > Yes! >> > It doesn''t make sense. >> > I''m using 2.x version. >> > Now controller name is Greetings, and view file name is index.html.erb >> > But the problem hasn''t been solved :( >> >> Please tell us the current filenames and contents again to make sure >> of what you have done. Have you removed all the old files? Rails has >> a habit of loading files that you have left lying around by accident. >> What exactly is the symptom now seen? >> >> Colin-- 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.
2010/7/6 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 5 July 2010 09:42, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > app/ > > > > controllers/ > > > > application_controller.rb > > > > greetings_controller.rb > > > > helpers/ > > > > application_helper.rb > > greetings_helper.rb > > > > models/ > > > > photo.rb > > > > views/ > > > > greetings/ > > > > index.html.erb > > > > layouts/ > > > > > > greetings_controller.rb: > > class GreetingsController < ApplicationController > > def index > > @mes = ''test'' > > end > > end > > index.html.erb > > <p><%= @mes %></p> > > html ouput (http://localhost:3000/greetings/ > > or http://localhost:3000/greetings/index/): > > <p><%= @mes %></p> > > > > Why it''s so hard?! :) > > No bug report.. Nothing.. > > Could you avoid top posting please, it makes it more difficult to > follow the thread. > > What do you see in development.log? > > Which version of rails are you using? You said 2.x but that covers a > lot of versions. > > Colin > > > > > 2010/7/5 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > >> > >> On 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> I don''t understand the last bit of the sentence above. Please expand > >> >> what > >> >> you > >> >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that > >> >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb > are > >> >> ignored > >> >> by the template engine? > >> > > >> > Yes! > >> > It doesn''t make sense. > >> > I''m using 2.x version. > >> > Now controller name is Greetings, and view file name is index.html.erb > >> > But the problem hasn''t been solved :( > >> > >> Please tell us the current filenames and contents again to make sure > >> of what you have done. Have you removed all the old files? Rails has > >> a habit of loading files that you have left lying around by accident. > >> What exactly is the symptom now seen? > >> > >> Colin >i''m using last version from rubyonrails.org log: [4;35;1mSQL (0.2ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m Processing GreetingsController#index (for 127.0.0.1 at 2010-07-05 12:41:42) [GET] Rendering greetings/index Completed in 2ms (View: 1, DB: 0) | 200 OK [ http://localhost/greetings/index/] -- 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.
config/routes.rb map.connect ''greeting'', :controller => ''greeting'', :action => ''index'' ? On Mon, Jul 5, 2010 at 11:51 PM, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> 2010/7/6 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > >> On 5 July 2010 09:42, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > app/ >> > >> > controllers/ >> > >> > application_controller.rb >> > >> > greetings_controller.rb >> > >> > helpers/ >> > >> > application_helper.rb >> > greetings_helper.rb >> > >> > models/ >> > >> > photo.rb >> > >> > views/ >> > >> > greetings/ >> > >> > index.html.erb >> > >> > layouts/ >> > >> > >> > greetings_controller.rb: >> > class GreetingsController < ApplicationController >> > def index >> > @mes = ''test'' >> > end >> > end >> > index.html.erb >> > <p><%= @mes %></p> >> > html ouput (http://localhost:3000/greetings/ >> > or http://localhost:3000/greetings/index/): >> > <p><%= @mes %></p> >> > >> > Why it''s so hard?! :) >> > No bug report.. Nothing.. >> >> Could you avoid top posting please, it makes it more difficult to >> follow the thread. >> >> What do you see in development.log? >> >> Which version of rails are you using? You said 2.x but that covers a >> lot of versions. >> >> Colin >> >> > >> > 2010/7/5 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> >> >> >> On 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> I don''t understand the last bit of the sentence above. Please >> expand >> >> >> what >> >> >> you >> >> >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that >> >> >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb >> are >> >> >> ignored >> >> >> by the template engine? >> >> > >> >> > Yes! >> >> > It doesn''t make sense. >> >> > I''m using 2.x version. >> >> > Now controller name is Greetings, and view file name is >> index.html.erb >> >> > But the problem hasn''t been solved :( >> >> >> >> Please tell us the current filenames and contents again to make sure >> >> of what you have done. Have you removed all the old files? Rails has >> >> a habit of loading files that you have left lying around by accident. >> >> What exactly is the symptom now seen? >> >> >> >> Colin >> > > > i''m using last version from rubyonrails.org > > log: > [4;35;1mSQL (0.2ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m > > > Processing GreetingsController#index (for 127.0.0.1 at 2010-07-05 12:41:42) > [GET] > Rendering greetings/index > Completed in 2ms (View: 1, DB: 0) | 200 OK [ > http://localhost/greetings/index/] > > -- > 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 6 July 2010 07:51, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 2010/7/6 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> >> On 5 July 2010 09:42, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > app/ >> > >> > controllers/ >> > >> > application_controller.rb >> > >> > greetings_controller.rb >> > >> > helpers/ >> > >> > application_helper.rb >> > greetings_helper.rb >> > >> > models/ >> > >> > photo.rb >> > >> > views/ >> > >> > greetings/ >> > >> > index.html.erb >> > >> > layouts/ >> > >> > >> > greetings_controller.rb: >> > class GreetingsController < ApplicationController >> > def index >> > @mes = ''test'' >> > end >> > end >> > index.html.erb >> > <p><%= @mes %></p> >> > html ouput (http://localhost:3000/greetings/ >> > or http://localhost:3000/greetings/index/): >> > <p><%= @mes %></p> >> > >> > Why it''s so hard?! :) >> > No bug report.. Nothing.. >> >> Could you avoid top posting please, it makes it more difficult to >> follow the thread. >> >> What do you see in development.log? >> >> Which version of rails are you using? You said 2.x but that covers a >> lot of versions. >> >... > > i''m using last version from rubyonrails.org > log: > [4;35;1mSQL (0.2ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m > > Processing GreetingsController#index (for 127.0.0.1 at 2010-07-05 12:41:42) > [GET] > Rendering greetings/index > Completed in 2ms (View: 1, DB: 0) | 200 OK > [http://localhost/greetings/index/] >I am out of ideas as to why the erb code is not being interpreted. Anyone else? Colin -- 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.
2010/7/6 Angel Robert Marquez <angel.marquez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> config/routes.rb > map.connect ''greeting'', :controller => ''greeting'', :action => ''index'' > > ? > > On Mon, Jul 5, 2010 at 11:51 PM, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> 2010/7/6 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> >>> On 5 July 2010 09:42, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> > app/ >>> > >>> > controllers/ >>> > >>> > application_controller.rb >>> > >>> > greetings_controller.rb >>> > >>> > helpers/ >>> > >>> > application_helper.rb >>> > greetings_helper.rb >>> > >>> > models/ >>> > >>> > photo.rb >>> > >>> > views/ >>> > >>> > greetings/ >>> > >>> > index.html.erb >>> > >>> > layouts/ >>> > >>> > >>> > greetings_controller.rb: >>> > class GreetingsController < ApplicationController >>> > def index >>> > @mes = ''test'' >>> > end >>> > end >>> > index.html.erb >>> > <p><%= @mes %></p> >>> > html ouput (http://localhost:3000/greetings/ >>> > or http://localhost:3000/greetings/index/): >>> > <p><%= @mes %></p> >>> > >>> > Why it''s so hard?! :) >>> > No bug report.. Nothing.. >>> >>> Could you avoid top posting please, it makes it more difficult to >>> follow the thread. >>> >>> What do you see in development.log? >>> >>> Which version of rails are you using? You said 2.x but that covers a >>> lot of versions. >>> >>> Colin >>> >>> > >>> > 2010/7/5 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >>> >> >>> >> On 4 July 2010 21:40, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >> >> I don''t understand the last bit of the sentence above. Please >>> expand >>> >> >> what >>> >> >> you >>> >> >> mean by "/.erb/.html.erb - doesn''t match". Do you mean that >>> >> >> /app/view/greeting/index.erb and /app/view/greeting/index.html.erb >>> are >>> >> >> ignored >>> >> >> by the template engine? >>> >> > >>> >> > Yes! >>> >> > It doesn''t make sense. >>> >> > I''m using 2.x version. >>> >> > Now controller name is Greetings, and view file name is >>> index.html.erb >>> >> > But the problem hasn''t been solved :( >>> >> >>> >> Please tell us the current filenames and contents again to make sure >>> >> of what you have done. Have you removed all the old files? Rails has >>> >> a habit of loading files that you have left lying around by accident. >>> >> What exactly is the symptom now seen? >>> >> >>> >> Colin >>> >> >> >> i''m using last version from rubyonrails.org >> >> log: >> [4;35;1mSQL (0.2ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m >> >> >> Processing GreetingsController#index (for 127.0.0.1 at 2010-07-05 >> 12:41:42) [GET] >> Rendering greetings/index >> Completed in 2ms (View: 1, DB: 0) | 200 OK [ >> http://localhost/greetings/index/] >> >> -- >> 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. >config/routes.rb map.connect ''greeting'', :controller => ''greeting'', :action => ''index'' ? no :( WTF?! may be something wrong with macos 10.6.4 and current version of RoR? -- 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 6, 9:09 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > I am out of ideas as to why the erb code is not being interpreted. Anyone else? >Random guess: a stray invisible character somewhere in the file. 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 Tue, Jul 6, 2010 at 10:13 AM, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> no :( > WTF?! > may be something wrong with macos 10.6.4 and current version of RoR?What do you mean by "current"? 2.3.8, 3.0beta -- which is it? Do you have a small test case you can post somewhere? FWIW, I''m running 2.3.8 at the moment on Mac OS 10.6.4 with no problems. Other than self-inflicted ones, of course :-) -- 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.
2010/7/6 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Tue, Jul 6, 2010 at 10:13 AM, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > no :( > > WTF?! > > may be something wrong with macos 10.6.4 and current version of RoR? > > What do you mean by "current"? 2.3.8, 3.0beta -- which is it? > > Do you have a small test case you can post somewhere? > > FWIW, I''m running 2.3.8 at the moment on Mac OS 10.6.4 with no > problems. Other than self-inflicted ones, of course :-) > > -- > 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. > >i''m using 1.3.7 -- 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 7 July 2010 09:13, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 2010/7/6 Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> On Tue, Jul 6, 2010 at 10:13 AM, Karen Kalashyan <karenishe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >> > no :( >> > WTF?! >> > may be something wrong with macos 10.6.4 and current version of RoR? >> >> What do you mean by "current"? 2.3.8, 3.0beta -- which is it? >> >> Do you have a small test case you can post somewhere? >> >> FWIW, I''m running 2.3.8 at the moment on Mac OS 10.6.4 with no >> problems. Other than self-inflicted ones, of course :-) >> >> -- >> 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''m using 1.3.7What? Do you mean rails 1.3.7? That is absolutely ancient, if it ever existed at all. Do you mean 2.3.7? Type rails -v in your rails application directory to see what it is. Colin -- 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 7, 9:13 am, Karen Kalashyan <kareni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 2010/7/6 Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > i''m using 1.3.7That seems unlikely - there never was a version 1.3.x of rails (perhaps you''ve reported the version number of rubygems itself?) 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 Wed, Jul 7, 2010 at 3:36 PM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Jul 7, 9:13 am, Karen Kalashyan <kareni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 2010/7/6 Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > > i''m using 1.3.7 > > That seems unlikely - there never was a version 1.3.x of rails > (perhaps you''ve reported the version number of rubygems itself?) > > 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. > >can you dump the output you get after executing script/about in the thread. Regards, Amiruddin Nagri, -- 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.
hm...>ruby -vruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]>script/aboutAbout your application''s environment Ruby version 1.8.7 (universal-darwin10.0) RubyGems version 1.3.7 Rack version 1.1 Rails version 2.3.8 Active Record version 2.3.8 Active Resource version 2.3.8 Action Mailer version 2.3.8 Active Support version 2.3.8 Application root /Library/WebServer/Documents/ruby_project_1 Environment development Database adapter mysql Database schema version 1 2010/7/8 Amiruddin Nagri <amir.nagri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Wed, Jul 7, 2010 at 3:36 PM, Frederick Cheung < > frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> On Jul 7, 9:13 am, Karen Kalashyan <kareni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > 2010/7/6 Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> > >> > i''m using 1.3.7 >> >> That seems unlikely - there never was a version 1.3.x of rails >> (perhaps you''ve reported the version number of rubygems itself?) >> >> 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. >> >> > can you dump the output you get after executing script/about in the thread. > > > Regards, > Amiruddin Nagri, > > > -- > 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.