[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
On May 29, 9:27 am, Martin Wawrusch wrote: > I guess I am going to blog about this once I have a bit more time. > > In general my observation with websites and javascript is that you have lots > of code that applies to all pages if you structure it right (usage of class > names in css), and very f

Re: [Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread Martin Wawrusch
I guess I am going to blog about this once I have a bit more time. In general my observation with websites and javascript is that you have lots of code that applies to all pages if you structure it right (usage of class names in css), and very few pages that have intense, page specific code. The p

[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
>class UserSearchView extends Backbone.View # or controller > ... > initialize: -> >here goes your page specific initializers > >$ -> > window.currentView = new UserSearchView if $(´body.users.search').length > >0 This solution looks interesting, and it also looks potentially dangerous. I'

[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
On May 29, 8:53 am, Martin Wawrusch wrote: > Depending on the kind of site you might want to use mvc views through > backbone or something similar and launch specific views depending on the > current page, something like so: > > html: > body class=´users search_page´ > ... > > and in your coffeesc

Re: [Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread Martin Wawrusch
Depending on the kind of site you might want to use mvc views through backbone or something similar and launch specific views depending on the current page, something like so: html: body class=´users search_page´ ... and in your coffeescripts (you do use coffeescript :P) class UserSearchView ext

Re: [Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread Gintautas Šimkus
Hi again :) Glad it all worked for you. Even if you didn't migrate right now, it would be a good learning experience (upgrading rails version of production site). So it's a win win situation basically. Don't know the answer to your JS problem, maybe somebody else might help on that. 2011/5/29 ege

[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
On May 29, 8:28 am, Gintautas Šimkus wrote: > If you see a lot of improvements that you personal would use in 3.1 over > 3.0.7, then you should think about switching. Another thing to consider is > deadlines, as upgrading will push the moment you are ready to go to > production further. You yourse

[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
On May 29, 8:12 am, egervari wrote: > Well, I got most things to work. I just have to figure out my assets > now. I made the folders and organized them. Now it's time to get them > to work ;) Yay, I got the css to work. I had a circular dependency since I had 2 main stylesheets - one for the publ

Re: [Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread Gintautas Šimkus
If you see a lot of improvements that you personal would use in 3.1 over 3.0.7, then you should think about switching. Another thing to consider is deadlines, as upgrading will push the moment you are ready to go to production further. You yourself raised a great question: will all the gems work wi

[Rails] Re: Is it okay to use Rails 3.1 for a new project? Is hard to convert over?

2011-05-29 Thread egervari
Well, I got most things to work. I just have to figure out my assets now. I made the folders and organized them. Now it's time to get them to work ;) -- 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 rub