Re: [Rails] Re: Can't find the PostgreSQL client library (libpq)
On Wed, Mar 7, 2012 at 4:10 PM, Craig White wrote: > Seems that you are on a Mac > > If you installed Postgres on your system using the binaries downloaded > directly from postgresql.org website, the following should fix this issue... > > PATH=$PATH:/Library/PostgreSQL/9.0/bin sudo gem install pg
Re: [Rails] Re: moving form validation to client-side
On Mon, Mar 5, 2012 at 7:14 AM, Mohamad El-Husseini wrote: > Have you seen > this? http://railscasts.com/episodes/263-client-side-validations > > > On Sunday, March 4, 2012 7:08:34 PM UTC-3, Rajinder Yadav wrote: >> >> Hi I know with javascript we can validate the input of a form on the >> client,
[Rails] Re: moving form validation to client-side
On Sun, Mar 4, 2012 at 6:07 PM, Dev Guy wrote: > On Sun, Mar 4, 2012 at 5:08 PM, Dev Guy wrote: >> Hi I know with javascript we can validate the input of a form on the >> client, is there an easy way to specify this in rails? I am thinking >> the javascript code getting gene
[Rails] Re: moving form validation to client-side
On Sun, Mar 4, 2012 at 5:08 PM, Dev Guy wrote: > Hi I know with javascript we can validate the input of a form on the > client, is there an easy way to specify this in rails? I am thinking > the javascript code getting generated using some sort of DSL? > While looking around I did m
[Rails] moving form validation to client-side
Hi I know with javascript we can validate the input of a form on the client, is there an easy way to specify this in rails? I am thinking the javascript code getting generated using some sort of DSL? -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org
Re: [Rails] Re: rails and javascript
On Wed, Feb 29, 2012 at 11:21 PM, Alpha Blue wrote: > There are a few ways to do this. If you are looking for an ajax > response you can do the following: > > (this is an example with a new action) > > <%= form_for Model.new, :remote => true do |f| %> > > Your Label > > <%= f.collection_select(
Re: [Rails] ensuring random list of numbers are unique
On Tue, Feb 28, 2012 at 8:03 PM, Valery Kvon wrote: > On 29.02.2012, at 4:10, John Merlino wrote: > >> Hey all, using ruby 1.8.7, I wrote this: >> >> 500.times.map { Integer((rand * 1) * 1000) / Float(1000) } >> >> Basically, this gives me a list of 500 random decimal numbers that are >> rounded
Re: [Rails] ensuring random list of numbers are unique
On Tue, Feb 28, 2012 at 7:10 PM, John Merlino wrote: > Hey all, using ruby 1.8.7, I wrote this: > > 500.times.map { Integer((rand * 1) * 1000) / Float(1000) } > > Basically, this gives me a list of 500 random decimal numbers that are > rounded to 3 places. However, I also want to make sure that a
Re: [Rails] i wanna buy best rails tutorials
Have you looked at the RailsGuides site, http://guides.rubyonrails.org/ On Tue, Feb 28, 2012 at 9:14 AM, Javier Quarite wrote: > > Codeschool.com? > > It also has a free basic rails course > > Javier Q. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on
Re: [Rails] Change devise registration redirect
I believe devise has it's own mailing list, you will probably get a faster reply there. On Tue, Feb 28, 2012 at 3:26 PM, Rodrigo Ruiz wrote: > Hi, in my application, when I try to sign up a user and the information is > incorrect, devise redirects me from '/users/sing_up' to the '/users' url. > I
[Rails] rails and javascript
Hi, I want to add a dropdown selection box that when an item is selected a javascript function gets called, is there an easy way to do this with Rails? Thanks! -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org -- You received this message becaus
Re: [Rails] SOT: HTML question about clickable area
On Sun, Feb 26, 2012 at 9:08 PM, Jeffrey L. Taylor wrote: > On the development version of my Web app, the clickable area of some anchors > is the text area and the padding (margin and border are both zero). On the > production version, only the padding is clickable. Any hints on how to track >
[Rails] Re: toggling a ajax form button
On Sun, Feb 26, 2012 at 2:02 PM, Dev Guy wrote: > Hi I managed to get an ajax form working somewhat, something like the > one below to be able to set and release a bookmark to a post. What I > want to know is how can I change the submit button so that it toggles > between the label, &
[Rails] toggling a ajax form button
Hi I managed to get an ajax form working somewhat, something like the one below to be able to set and release a bookmark to a post. What I want to know is how can I change the submit button so that it toggles between the label, "Pin" and "Un-Pin" ? <%= form_tag( snipmark_path(@post), :remote => tr
Re: [Rails] Re: view rendering and javascript files
Found the answer in the RailsGuides in the asset pipeline section, this is a development mode thingy as I assumed. -- 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
Re: [Rails] Re: view rendering and javascript files
I need some more help, I've never tested in production mode. However after creating my production db, and running the rails server is production I get a few errors 1) WeBrick claims port 3000 is already in use when it's not, not a big deal => Booting WEBrick => Rails 3.2.1 application starting i
Re: [Rails] Devise generates Mailer by its own?
Hi you might want to ask this on the devise mailing list, you can find it here https://groups.google.com/group/plataformatec-devise Cheers! On Thu, Feb 23, 2012 at 9:58 PM, Soichi Ishida wrote: > Rails 3.1.3 > > Hi. I'm a little confused with Devise and ActionMailer. > > It seems that Devise ha
[Rails] Re: odd behaviour with postgresql and rails 3?
OK I narrowed it down to user error, nothing is wrong! On Thu, Feb 23, 2012 at 8:07 PM, Dev Guy wrote: > Hi I am seeing something odd with my postgresql database with Rails 3, > there is one model I can't update from Rails. From the rails console I > can update other models
[Rails] odd behaviour with postgresql and rails 3?
Hi I am seeing something odd with my postgresql database with Rails 3, there is one model I can't update from Rails. From the rails console I can update other models, but not this particular model. The model is simple, I can create a records, but after this I can't update a record. It was working
[Rails] view rendering and javascript files
Hi I am noticing my view rendering is getting a bit bogged down as I add more javascript libraries. For each .js file I have, I am seeing this in the console: Started GET "/assets/tinymce/jscripts/tiny_mce/tiny_mce.js?body=1" for 127.0.0.1 at 2012-02-22 17:44:52 -0500 Served asset /tinymce/jscript
[Rails] Re: using jQuery with Rails 3.2
On Mon, Feb 13, 2012 at 2:01 AM, Dev Guy wrote: > Hi I am learning to use jQuery but I can't seem to get the following > line to work from my html.erb file > > > document.write("<p>Hello from javascript!</p>") > $("<p>Hello from jQuery!<
[Rails] using jQuery with Rails 3.2
Hi I am learning to use jQuery but I can't seem to get the following line to work from my html.erb file document.write("Hello from javascript!
") $("Hello from jQuery!
") I see the output for the basic javascript call, but nothing from jQuery, what am I doing wrong? I know Rails
Re: [Rails] Re: rails 3.1.0 getting a javascript error?
On Sun, Sep 4, 2011 at 11:58 AM, Ilya Boltnev wrote: > try to add to Gemfile > gem 'execjs' > gem 'therubyracer' > > and > bundle update > bundle install > Thanks that got things working! Kind Regards, Rajinder Yasdav -- You received this message because you are subscribed to the Google Groups
[Rails] Re: rails 3.1.0 getting a javascript error?
On Sun, Sep 4, 2011 at 9:59 AM, Dev Guy wrote: > I updated to the rails 3.1.0 from 3.0.9 and I am getting the following > error, how can I fix? > > yadav@karma:$ rails g scaffold post title:string name:string message:text > /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/exe
[Rails] rails 3.1.0 getting a javascript error?
I updated to the rails 3.1.0 from 3.0.9 and I am getting the following error, how can I fix? yadav@karma:$ rails g scaffold post title:string name:string message:text /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/runtimes.rb:45:in `autodetect': Could not find a JavaScript runtime. Se
Re: [Rails] errors building rails app
opps! you're right Kendall =) ... I feel like a Rails noob =) On Fri, Jul 22, 2011 at 4:20 PM, Kendall Gifford wrote: > > > On Thursday, July 21, 2011 11:14:03 PM UTC-6, Rajinder Yadav wrote: >> >> $ rails g scaffold title:string description:test >> >> invoke active_record >> >> /usr/loca