[Rails] Re: Validation in ruby on rails

2012-07-24 Thread Manoj M.
Ace S. wrote in post #1069974: > Hi manoj, > > I am replying to a message that you posted on the ruby-forum but didn't > show up in google groups. > > Anyway, did you put > > gem "dynamic_form" > > > > in your Gemfile? > And then after that, run 'bundle install' ? > Please do so and try again. > >

Re: [Rails] local request

2012-07-24 Thread Valery Kvon
Oops, I just realized that javascript code executing always on client's browser, and any request will have 'REMOTE_ADDR' = client's IP. Thus, there is only approach to use some kind of authenticity_token. On 24.07.2012, at 23:29, Hassan Schroeder wrote: > On Tue, Jul 24, 2012 at 12:09 PM, Val

Re: [Rails] local request

2012-07-24 Thread Hassan Schroeder
On Tue, Jul 24, 2012 at 12:09 PM, Valery Kvon wrote: > If the javascript runtime could do it… :) JavaScript? Is this executing on the client or on the server? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- You receiv

Re: [Rails] local request

2012-07-24 Thread Javier Quarite
I've never done something like this before (routing to application controller), but weeks ago I saw this project in this mail list https://github.com/devton/whatismyvideoid and in its routes file he made something like you mentioned. Maybe you can use it as an example. Javier Q. -- You receive

Re: [Rails] local request

2012-07-24 Thread Valery Kvon
If the javascript runtime could do it… :) On 24.07.2012, at 23:02, Hassan Schroeder wrote: > On Tue, Jul 24, 2012 at 10:49 AM, Valery Kvon wrote: > >> I want the path '\quicksearch' to be exactly local (available from >> application itself only), any external requests must be ignored. > > Th

Re: [Rails] local request

2012-07-24 Thread Hassan Schroeder
On Tue, Jul 24, 2012 at 10:49 AM, Valery Kvon wrote: > I want the path '\quicksearch' to be exactly local (available from > application itself only), any external requests must be ignored. Then why even bother to access it through a controller? -- Hassan Schroeder has

[Rails] local request

2012-07-24 Thread Valery Kvon
Hi everybody! Does anyone know the best approach to create local-only path? code begin MyApp::Application.routes.draw do match 'quicksearch' => 'application#quicksearch' end ===code end=== I want the path '\quicksearch' to be exactly local (available from application itself only), a

[Rails] MagicRuby 2012 (the only Ruby conference *inside* Walt Disney World!) – Registration open and CFP open for one more week!

2012-07-24 Thread Jeremy McAnally
Hello everyone! I just realized I hadn't alerted the community at large via the mailing lists of our event this year. MagicRuby 2012 (presented by GitHub) will be happening on October 5 and 6, 2012 inside Disney's Hollywood Studios Theme Park® at the Premier Theatre. Our registration is open now

[Rails] [ANN] LSRC 6 - Only 16 Days Left!

2012-07-24 Thread jimfreeze
Hi All It's been just over two weeks since LSRC 6 tickets went on sale, and it is already over half full. And now, it's just 16 days to go for LSRC 6. That's right, two weeks and two days from now you can see Laurent Sansonetti of RubyMotion fame, Uncle Bob Martin, and, best of all, Matz! The

[Rails] Re: Re: Re: Re: Re: trouble with new app in rails

2012-07-24 Thread Sebastjan H.
Sebastjan H. wrote in post #1069964: > Norbert Melzer wrote in post #1069957: >> Try again without the asterisks, they were for formatting in the mail >> you >> copied from... >> Am 23.07.2012 15:29 schrieb "Sebastjan H." : > > Did you mean: > > sebah@sebah-laptop:~$ `which ruby` --version > ruby 1

[Rails] Re: Re: How to add button to pass drop down menu selection to controller

2012-07-24 Thread lalalalala pqpqpqpqpq
Hassan Schroeder wrote in post #1069990: > On Tue, Jul 24, 2012 at 6:03 AM, lalalalala pqpqpqpqpq > wrote: >> I got it to work, thanks for the help. > > It would be appropriate to share the solution here, so the next person > researching the same question finds it... > > -- > Hassan Schroeder

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-24 Thread Hassan Schroeder
On Tue, Jul 24, 2012 at 6:03 AM, lalalalala pqpqpqpqpq wrote: > I got it to work, thanks for the help. It would be appropriate to share the solution here, so the next person researching the same question finds it... -- Hassan Schroeder hassan.schroe...@gmail.com http://

[Rails] Re: Rails 3.2 migration

2012-07-24 Thread deal bitte
solved changed login.html to login.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@googlegroups.com. To unsubscribe from this group, se

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-24 Thread lalalalala pqpqpqpqpq
I got it to work, thanks for the help. -- 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@googlegroups.com. To unsubscribe from this group, sen

[Rails] Rails 3.2.6 and Authlogic 3.1.3

2012-07-24 Thread Zac Hallett
Is anyone working with rails 3.2.X and authlogic, specifically rails 3.2.6 and authlogic 3.2.3? I am having an issue where the session is being set to nil only on google chrome and mobile safari, all other browsers I am able to log into my app just fine. I am able to log into production which

[Rails] ROR Opportunity in Raleigh, NC

2012-07-24 Thread BethDickey
I am seeking a Ruby on Rails Developer for a direct hire opening that I have available in Raleigh, NC. Need 2+ years experience with Rails. If you or someone you know may be interested, please send your current resume to bethdic...@resolution-tech.com for consideration. We do offer excellent

[Rails] uninitialized constant ActionController::Flash::FlashHash [NameError])

2012-07-24 Thread Tommy Pollák
My application, a very simple general ledger, that worked very well until June 26 does not work any longer. It is used under Ubuntu 12.04 and I believe there was a Ruby update after that. What happens? When I try to start the appIication I get the following output in my web browser: ActionDis

[Rails] simplify the entry point url for rails 3.2

2012-07-24 Thread radical
Hi, if in rails 2.3 we can use this syntax map.connect ' ', :controller => 'people', :action => 'action' the result it will simplify from http://localhost:3000/people/action to http://localhost:3000/ but in rails 3.2, we can't use map.connect right? i try to use : match ' people/action ' => '

[Rails] Re: Rails3 routes

2012-07-24 Thread radical
> > i also have the same problem.. > i use this coding: > match 'pages/:id/show2' => 'pages#show2', as: 'shows' > > the result, i can only generate for url or path used.. for example .. <%= > link_to 'show2', shows_path(page) %> > and the url > i also try to use this: > root to: 'pages#show',

[Rails] Re: Validation in ruby on rails

2012-07-24 Thread Ace Suares
Hi manoj, I am replying to a message that you posted on the ruby-forum but didn't show up in google groups. Anyway, did you put gem "dynamic_form" in your Gemfile? And then after that, run 'bundle install' ? Please do so and try again. cheers ace -- You received this message because you

[Rails] Rails 3.2 migration

2012-07-24 Thread deal bitte
I have installed the latest version of rails and jruby. I have copied all my files from rails 2.3.5 version and am trying to bring all to work in this version I am facing this problem now on launch http://localhost:3000/ Missing template home/login, application/login, active_scaffold_overrides/lo

[Rails] Re: Re: Re: Re: Re: trouble with new app in rails

2012-07-24 Thread Sebastjan H.
Norbert Melzer wrote in post #1069957: > Try again without the asterisks, they were for formatting in the mail > you > copied from... > Am 23.07.2012 15:29 schrieb "Sebastjan H." : Did you mean: sebah@sebah-laptop:~$ `which ruby` --version ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

[Rails] request.session_options[:id] accessiblity problem

2012-07-24 Thread Sumit Srivastava
I am having problem retrieving the value for variable request.session_options[:id] from my controller. Though the same returns a proper value when accessed through a view. I am not able to understand why it is happening. -- You received this message because you are subscribed to the Google Gro

[Rails] Disallowing multiple login by same user using different browsers

2012-07-24 Thread Sumit Srivastava
Hi, I need to create an app where one user cannot login using multiple browsers. As soon as he does, the previous one logs out. I have a user table with a field named "current_sign_in_token' to store the session key generated by one login. But I am not able to retrieve the session key. Actuall

Re: [Rails] Re: Re: Re: Re: trouble with new app in rails

2012-07-24 Thread Norbert Melzer
Try again without the asterisks, they were for formatting in the mail you copied from... Am 23.07.2012 15:29 schrieb "Sebastjan H." : > lionel first-developer wrote in post #1069780: > > Try this as well : > > > > *rvm use ruby-1.9.3-p125* > > > > and retry :) > > > > nope, still the same error as

[Rails] Re: Validation in ruby on rails

2012-07-24 Thread manoj c.
Ace S. wrote in post #1069767: > Dear sirs, > > I dont't think the addition of :message => "can't be blank" does make a > difference.\ > > Validations have their own strings already packed, in en.yml in the > active_model gem. In the console (rails c) you can try it out (assuming > your model is na

[Rails] Re: testing references

2012-07-24 Thread Weston Platter
This helped me understand syntax and strategy. http://www.codeschool.com/courses/testing-with-rspec On Monday, July 23, 2012 11:38:58 AM UTC-4, John Merlino wrote: > > I am struggling somewhat with testing. And I would like to know a > comprehensive reference on rails unit test. I find the railsc

[Rails] Re: Deploying a rails 3.2 app

2012-07-24 Thread Louis Davin
Thanks a lot for those great tips ! -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@google