[Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Bigos
I hate Rails sometimes. Now and then I have a feeling that using Rails is like trying to fit a square peg in a round hole. For example Active record doesn't fit my every need and sometimes I have to use SQL. Because I use Rails I have lost much of my SQL skills. Last time I had some unusual

[Rails] Is it safe to upgrade to 3.2.13 or wait for 3.2.14

2013-05-02 Thread Farukh D.M
Hi, I came across following link: http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released/ which says rails vulnerabilities issue has been fixed in 3.2.13 However I could see another link which says Rails 3.2.13 has induced Performance Regressions

[Rails] Guide user gem

2013-05-02 Thread HaCos
Hello, i am looking for a technique or even better a gem that i could use in order to design a step-by-step guide for my members when they first sign-in. To be more specific i need a way to guide users after they register in order to to show them how they should move on with the application,

[Rails] Is there any way to update the javascript when I reload the page using rails?

2013-05-02 Thread Miguel Correlo
Hi, I need fix any bugs in a rails project. The problem is every time I change anything in javascript I have to make bundle exec rake rails_group=assets assets:clean RAILS_ENV=development and then bundle exec rake rails_group=assets assets:precompile RAILS_ENV=development and finaly restart

[Rails] trouble-with-capybara-and-rspec-on-a-new-model-spec

2013-05-02 Thread Mostafa Hussein
I have searched a lot for a solution, but I could not find it! I am trying to make a rails application after watching Michael Hartl's tutorial and when i fill data manually and submit it nothing happens and nothing records in the Mailers table and I am facing the following error: Failures:

[Rails] Re: Ruby on rails retrieve data respective from select box to text area

2013-05-02 Thread doeme . meier
I want to do exactly the same thing.. did you find a solution? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: trouble-with-capybara-and-rspec-on-a-new-model-spec

2013-05-02 Thread dasibre
From the code you've posted, It seems everything is ok and should work. I suggest you do some debugging, try using the better_errors gem, it'll give you more informative errors. Run your rspec test using the -e flag to specify each individual test, through process of elimination you can

[Rails] How to set the other template engine (Tenjin) as the default in Rails ()instead of Erubis)?

2013-05-02 Thread Wins Lin
The problem I want to solve is that Erubis (the default Rails template engine) parses html unprofessionally - there are many blank lines and space characters are left in the result page. -% (minuses in tags) do not help. I do not want to switch Haml or Slim because I prefer plain html. I want to

[Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Wins Lin
Jacek Podkanski wrote in post #1107534: It seems that I modify problems to fit them into Rails instead of modifying Rails to adapt it to my problems. Well said. 100% right. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: Is there any way to update the javascript when I reload the page using rails?

2013-05-02 Thread Frederick Cheung
On Wednesday, May 1, 2013 8:07:17 PM UTC+1, Miguel Correlo wrote: Hi, I need fix any bugs in a rails project. The problem is every time I change anything in javascript I have to make bundle exec rake rails_group=assets assets:clean RAILS_ENV=development and then bundle exec rake

Re: [Rails] Is there any way to update the javascript when I reload the page using rails?

2013-05-02 Thread Emil S
You don't need to precompile your assets in development environment. Remove config.assets.compile = false from config/environments/development.rb if it's there. Read this stackoverflow questionhttp://stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-notfor a

[Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Matt Jones
On Thursday, 2 May 2013 05:19:17 UTC-4, Bigos wrote: I hate Rails sometimes. Now and then I have a feeling that using Rails is like trying to fit a square peg in a round hole. For example Active record doesn't fit my every need and sometimes I have to use SQL. Because I use Rails I have

[Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread gsw
On Thursday, May 2, 2013 5:19:17 AM UTC-4, Bigos wrote: I hate Rails sometimes. Now and then I have a feeling that using Rails is like trying to fit a square peg in a round hole. For example Active record doesn't fit my every need and sometimes I have to use SQL. Because I use Rails I have

[Rails] Re: Rails paths when loading a Java applet

2013-05-02 Thread Ian Randolph
Did you ever figure this out? I am having the same problem and can't find a good solution anywhere. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Integrating an applet - getting a routing error

2013-05-02 Thread Ian Randolph
What did you find out about this? I am having the exact same issue and can't seem to find a good answer anywhere. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an

[Rails] Nesting modules inside of a Rails eninge gem

2013-05-02 Thread AJ Acevedo
What is the proper syntax to nest child modules within a parent module that is being as an isolate_namespace Rails engine gem? # lib/myengine/engine.rb module MyEngine class Engine Rails::Engine isolate_namespace Myengine # def ... end end For example. The parent module is MyEngine

[Rails] nested forms in activeadmin is mass assigning

2013-05-02 Thread Daniel Hatcher
Here is my questionhttp://stackoverflow.com/questions/16325137/yet-another-cant-mass-assign-protected-attributes-address-post . -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from

Re: [Rails] Re: Ruby on rails retrieve data respective from select box to text area

2013-05-02 Thread Walter Lee Davis
On May 1, 2013, at 11:24 PM, doeme.me...@gmail.com wrote: I want to do exactly the same thing.. did you find a solution? Could you please make a point of quoting all or the relevant bits of the preceding messages when posting to an existing thread? It's incredibly hard for anyone to help you

Re: [Rails] Re: Rails paths when loading a Java applet

2013-05-02 Thread Daniel Hatcher
No one has given me a viable response yet. I will keep you in the loop if i find anything out. On Thu, May 2, 2013 at 10:25 AM, Ian Randolph ian.h...@gmail.com wrote: Did you ever figure this out? I am having the same problem and can't find a good solution anywhere. -- You received this

[Rails] Join table query question

2013-05-02 Thread Dave Castellano
Hi, I'm a novice and could use help with a join table question. I have a join table galleries_questions. I can't figure out how to query it for pictures in a selected gallery. Controller: @gallery = Gallery.where(minisection_id = session[:minisection_id]).first @pictures =

Re: [Rails] Join table query question

2013-05-02 Thread Hassan Schroeder
On Thu, May 2, 2013 at 1:00 PM, Dave Castellano li...@ruby-forum.com wrote: I have a join table galleries_questions. I'll hope that's really 'galleries_pictures' :-) I can't figure out how to query it for pictures in a selected gallery. How do you have the relationship defined in the models?

Re: [Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Colin Law
On 2 May 2013 13:18, Wins Lin li...@ruby-forum.com wrote: Jacek Podkanski wrote in post #1107534: It seems that I modify problems to fit them into Rails instead of modifying Rails to adapt it to my problems. Well said. 100% right. Wins Lin: how long have you been using Rails? Colin --

[Rails] Re: Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Wins Lin
Colin Law wrote in post #1107600: On 2 May 2013 13:18, Wins Lin li...@ruby-forum.com wrote: Jacek Podkanski wrote in post #1107534: It seems that I modify problems to fit them into Rails instead of modifying Rails to adapt it to my problems. Well said. 100% right. Wins Lin: how long have

Re: [Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Julian Leviston
On 03/05/2013, at 12:09 AM, Matt Jones al2o...@gmail.com wrote: On Thursday, 2 May 2013 05:19:17 UTC-4, Bigos wrote: I hate Rails sometimes. Now and then I have a feeling that using Rails is like trying to fit a square peg in a round hole. For example Active record doesn't fit my every

Re: [Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Anna Lissa Cruz
I've been using Rails since 2004 and still love it. I understand a lot of the complaints about Rails and may have occasionally voiced my dislike as well. However, the complaints I often hear about Rails has more to do with the kind of coders/people the framework seems to attract than the actual

[Rails] Re: Join table query question

2013-05-02 Thread Dave Castellano
Yes, its actually 'galleries_pictures' class Gallery ActiveRecord::Base has_and_belongs_to_many :pictures class Picture ActiveRecord::Base has_and_belongs_to_many :galleries Not relevant, but @gallery.pictures would work there... Where? -- Posted via http://www.ruby-forum.com/. --

[Rails] how to encrypt password in php

2013-05-02 Thread oto iashvili
Hi, im migrating a website from php to rails and devise. There is a user table with password that are not encrypted. I made already a script in php to migrate to data to new database, but I cant figure how to encrypt password so i will work with devise. I foudn different solution on google,

Re: [Rails] Re: Join table query question

2013-05-02 Thread Hassan Schroeder
On Thu, May 2, 2013 at 6:07 PM, Dave Castellano li...@ruby-forum.com wrote: If you don't top-post, this will be easier :-) class Gallery ActiveRecord::Base has_and_belongs_to_many :pictures class Picture ActiveRecord::Base has_and_belongs_to_many :galleries What does the migration

Re: [Rails] how to encrypt password in php

2013-05-02 Thread Walter Lee Davis
On May 2, 2013, at 6:32 PM, oto iashvili optimum.dulo...@laposte.net wrote: Hi, im migrating a website from php to rails and devise. There is a user table with password that are not encrypted. I made already a script in php to migrate to data to new database, but I cant figure how to

Re: [Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-02 Thread Emil S
I agree that ORMs tend to make you think un-object-orientedly sometimes Isn't the primary purpose of ORM to provide an object oriented way of dealing with your data ? I've been using Rails for 4 years, and I don't complain. I can ask an absolute beginner in rails to build something for me, and

Re: [Rails] how to encrypt password in php

2013-05-02 Thread Emil S
How about migrating your user table using ActiveRecord? I can get the data of a user from the old DB in some way, and migrate into the new DB using this : User.create(email: 't...@test.com', password: 'unencrypted password from old db', password_confirmation :'same_password') On 3 May 2013