[Rails] devise_token_auth in --api application - sign_in action doesn't work after second deploy on heroku

2017-05-19 Thread Junior RoR Dev
Hello, I've the question about the "devise_token_auth" gem, authentication in Ruby on Rails application (API) and deploying it to Heroku. *Introduction* What I did: 1/ Created an --api --database=postgresql app 2/ Added some required gems like gem 'devise_token_auth' gem 'omniauth' gem 'rack-c

[Rails] observe_field on rails 4

2016-02-11 Thread Dev Mapluz
hi i used observe_filed on rails2 to detect a choice in a popup, an use render update in my controller how can i use this functionnality in rails 4 ? do i have to go with javascriot or jquery thanks for you help -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

[Rails] Re: Build report on Ruby on Rails

2014-12-05 Thread Wolf Dev
Thank you Vankala & Ankur On Wednesday, December 3, 2014 2:58:20 PM UTC+7, Wolf Dev wrote: > > Hello Everyone, > > I want to build reports that able to preview and convert to pdf format on > rails app. > if possible, I don't want to use any tool add-on (gem). &g

Re: [Rails] Build report on Ruby on Rails

2014-12-03 Thread Wolf Dev
Ok, so what gem you would recommend me to use? -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to

Re: [Rails] Build report on Ruby on Rails

2014-12-03 Thread Wolf Dev
Ok, what gem you would recommend me to use? -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this

Re: [Rails] Build report on Ruby on Rails

2014-12-03 Thread Wolf Dev
Ok, what gem you would recommend me to use? On Wednesday, December 3, 2014 4:53:16 PM UTC+7, Colin Law wrote: > > On 3 December 2014 at 07:58, Wolf Dev > > wrote: > > Hello Everyone, > > > > I want to build reports that able to preview and convert to pdf format

[Rails] Build report on Ruby on Rails

2014-12-03 Thread Wolf Dev
Hello Everyone, I want to build reports that able to preview and convert to pdf format on rails app. if possible, I don't want to use any tool add-on (gem). Anyone who has any guide or sample projects please suggest me. Thank you. -- You received this message because you are subscribed to th

[Rails] Re: Which Company is Best on Ruby on Rails Development in India?

2014-02-14 Thread VISoftWeb Dev
Hello, Greeting Without taking lots of your time I m present you some of work on RoR technology. Ruby On Rails: https://www.mepin.com/ https://hireinfluence.com/ http://www.meallogger.com/ http://www.vendep.com/ http://event.sevendevs.de/front_dashboard I have seen your needs with ROR dev

[Rails] Re: Rails not loading precompiled assets

2013-08-17 Thread Exel Dev
Am running Rails 4 with Ruby 2 on Nginx and Unicorn. Assets under /app/assets show in production, but for some reason the app is not showing the precompiled assets in the public folder. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Rails not loading precompiled assets

2013-08-17 Thread Exel Dev
I've just launched my first app, its running on Nginx and Unicorn. For some reason although I precompiled the assets, they're not showing in the browser. Its showing all the css and js files instead of the precompiled versions. Would anyone have any idea what may be causing that. Could it be an

[Rails] Re: Nginx & Unicorn setup

2013-08-14 Thread Exel Dev
Dwight Spencer wrote in post #1118596: > Hi Pardeep, > > I'm glad to help. I did get to review both of the gists you posted up > and your nginx configuration does look proper. This leads me to suspect > there is a config issue with unicorn. Do you have a gist of the unicorn > config I can look at?

[Rails] Re: Nginx & Unicorn setup

2013-08-12 Thread Exel Dev
For some reason the first gist didn't include the nginx.conf file. Here it is: https://gist.github.com/anonymous/c32b0d0ee91434d80f5c -- 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 unsubsc

[Rails] Re: Nginx & Unicorn setup

2013-08-12 Thread Exel Dev
Dwight Spencer wrote in post #1118529: > Sounds like there's something wrong with your nginx config and/or > unicorn.conf. Could you put a github gist link for each of these > configurations? > > Cheers, > Dwight S. (@denzuko) > ComputekIndustries.com Hi Dwight, Thanks for your help, I've made a

[Rails] Problem getting Nginx & Unicorn to work for Railo 4 on Ubuntu 12.04

2013-08-10 Thread Exel Dev
Hi, I'm having a bit of aggro getting Unicorn and Nginx setup to where Uncorn.rb actually loads. Second prob is getting Nginx to properly recognize the new app listed as server in nginx.conf Does anyone know of any good articles on this setup? I've looked a tried a few but with no success. Puma

[Rails] Nginx & Unicorn setup

2013-08-10 Thread Exel Dev
Hi, I'm having a bit of aggro getting Unicorn and Nginx setup to where Uncorn.rb actually loads. Second prob is getting Nginx to properly recognize the new app listed as server in nginx.conf Does anyone know of any good articles on this setup? I've looked a tried a few but with no success. Puma

Re: [Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Exel Dev
ks seem to indicate Puma as being lightest/fastest at this time, it was a v noticeable diff between Passenger and Puma. On Sunday, July 28, 2013 5:31:39 PM UTC-7, tamouse wrote: > > > On Jul 28, 2013, at 8:08 AM, Hassan Schroeder > > > wrote: > > > On Sun, Jul 28,

[Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Exel Dev
Is there a way to get an Apache vhost to start Puma automatically on a Rails app? I'm installing Apache and Puma on a linux ubuntu 12.04 box, first I tried it with Passenger but it seemed quite slow compared to Puma. Is there a preferred recommended setup that's more ideal? Thanks, The Dude Ab

Re: [Rails] Re: Can't find the PostgreSQL client library (libpq)

2012-03-07 Thread Dev Guy
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

2012-03-05 Thread Dev Guy
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

2012-03-04 Thread Dev Guy
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

2012-03-04 Thread Dev Guy
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

2012-03-04 Thread Dev Guy
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

2012-03-02 Thread Dev Guy
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

2012-02-28 Thread Dev Guy
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

2012-02-28 Thread Dev Guy
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

2012-02-28 Thread Dev Guy
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

2012-02-28 Thread Dev Guy
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

2012-02-28 Thread Dev Guy
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

2012-02-26 Thread Dev Guy
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

2012-02-26 Thread Dev Guy
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

2012-02-26 Thread Dev Guy
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

2012-02-25 Thread Dev Guy
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

2012-02-25 Thread Dev Guy
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?

2012-02-23 Thread Dev Guy
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?

2012-02-23 Thread Dev Guy
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?

2012-02-23 Thread Dev Guy
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

2012-02-22 Thread Dev Guy
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

2012-02-13 Thread Dev Guy
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] dj and god memory leak in rails application

2012-02-13 Thread Lucky Dev
We have delayed_job to handle background processing in our app. God monitors the more-memory-consuming DJ workers now and then and cut them off. This setup has been working perfectly for months with daily deploys. Now today, suddenly all the workers once they are started consumes 400+ MB memory ea

[Rails] using jQuery with Rails 3.2

2012-02-12 Thread Dev Guy
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?

2011-09-04 Thread Dev Guy
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?

2011-09-04 Thread Dev Guy
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?

2011-09-04 Thread Dev Guy
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

2011-07-22 Thread Dev Guy
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

[Rails] Including associations with dynamic conditions

2011-07-13 Thread Vijay Dev
Given a school model and a student model with the school having a has_many relation to student: has_many :students, :conditions => proc { "year_id=#{send(:active_year_id)}" } where active_year_id is a method defined in the school model, I'm encountering an error that "active_year_id is undefi

[Rails] Timezone ActiveRecord and Rails3

2011-04-02 Thread Lucky Dev
I want to store, retrieve and handle all times inside my app in just one Timezone. => "New Delhi" for that I've set in my application.rb file, config.time_zone = "New Delhi" When i create a record like Event.create(:when => DateTime.new(2011, 5, 7, 16, 0, 0)) it creates an event record in my m

[Rails] Get Started!!

2011-03-01 Thread Dev
I have limited HTML & CSS knowledge but have a passion to innovate and to create web apps. Is ruby the right choice? How much time do i need to dedicate to understand scripting in RoR to create robust web apps? Thanks D -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Http Digest Authentication

2010-09-08 Thread Andriod Dev
Gregg Kellogg wrote: > Created ticket #1230 on Lighthouse. I am facing exactly the same problem. Any update? -- 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

[Rails] Using self. Can you newbify this for me?

2010-05-05 Thread dev
For some reason I am tripping up on the use of self and new. class LineItem < ActiveRecord::Base belongs_to :order belongs_to :product def self.from_cart_item(cart_item) li = self.new li.product = cart_item.product li.quantity = cart_item.quantity li.total_price = cart_item.

[Rails] MySQL Constraints - Active Record

2010-05-05 Thread dev
What is the "proper" way to add constraints using MySQL as the database? I have it set up like this: t.integer :product_id, :null => false, :options=> "CONSTRAINT fk_line_item_products REFERENCES products(id)" This does nothing even if I fill the options with obviously bad syntax or just garba

[Rails] Re: " appearing in email

2010-02-05 Thread Jay Dev
Frederick Cheung wrote: > On Feb 4, 9:11�pm, Philip Hallstrom wrote: > >> > <%=h @notification.message %> >> >> Don't escape it. �h is an alias for html_escape which (for 2.3.2) does � >> this on the argument: > > > To be quite precise, only use h (that is, html_escape) if the output > is html.

[Rails] " appearing in email

2010-02-04 Thread Jay Dev
I am having problems with the formatting of my email. This is what my code looks like - email = NotifyMailer.create_send_notifications(@notification,@test) email.set_content_type("text/plain") NotifyMailer.deliver(email) --- and my send_notifications.rhtml looks like thi

[Rails] how to login in spree

2009-11-14 Thread Dev Tri
any one cn tell me how i cn login in spree when i click on login button it redirects t0 https://localhost/login -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Emails + Delete from Inbox

2009-07-20 Thread Cyrus Dev
Hello All, I need to know is there possible to delete emails from inbox using Net:POP3 in ruby I have tried to their function but its not working please help me thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message b

[Rails] RFacebook send emails to friends

2009-05-18 Thread Cyrus Dev
Hello all I have one issue ,in my application I am using Rfacebook, my facebook application , I have loaded all friends Now I want to send or get emails of friends , How can I get those emails of friends using Rfacebook ? Please help me Thanks for help -- Posted via http://www.ruby-forum.c

[Rails] Re: question about creating a link to download

2009-03-25 Thread Jay Dev
This is an example. I tried this below code but it blocks mongrel until the whole file is read which is over 500 MB. def download send_data(open('http://mirrors.gigenet.com/ubuntu/intrepid/ubuntu-8.10-desktop-i386.iso').read, :filename => 'ubuntu-8.10-desktop-i386.iso' , :type =>

[Rails] Re: question about creating a link to download

2009-03-25 Thread Jay Dev
Thanks for the reply. The exe file is on another server. Thanks! Frederick Cheung wrote: > On Mar 25, 6:54�pm, Jay Dev wrote: >> Hi Folks, >> >> I'm new to Rails and working on a project where after the user logs in >> they can click on a link to download a

[Rails] question about creating a link to download

2009-03-25 Thread Jay Dev
Hi Folks, I'm new to Rails and working on a project where after the user logs in they can click on a link to download an exe file ( say for example the file is at http://test.com/test.exe). I want to keep the link to the exe file hidden. What are the best ways to implement this step. I was think

[Rails] Regarding IDE

2009-02-26 Thread Cyrus Dev
Hello Every one, I am using SciTE Editor which is good for ruby and rails, but I want editor with file browser in that , is any plugin available for it ? thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because y

[Rails] Re: Hash and Array

2009-02-23 Thread Cyrus Dev
How can we create new objects from hashes ? thanks .. Frederick Cheung wrote: > On 23 Feb 2009, at 08:48, Cyrus Dev wrote: > >> >> >> Yes fred >> >> I modify that array and hash that is my question.. >> >> Can I do that array like original like

[Rails] Re: Hash and Array

2009-02-23 Thread Cyrus Dev
Yes fred I modify that array and hash that is my question.. Can I do that array like original like activ record array ? using any ruby or rails functions ? thanks Frederick Cheung wrote: > On Feb 21, 12:06�pm, Cyrus Dev > wrote: >> >> but after modifying this array with

[Rails] Re: Hash and Array

2009-02-21 Thread Cyrus Dev
ave to write in file file liek @users.each do |c| c.title it will not work end instead of that i have to write @users[0].title got it ? any solution ? Frederick Cheung wrote: > On Feb 21, 11:11�am, Cyrus Dev > wrote: >> thanks fred >> >> but in o/p >> >>

[Rails] Re: Hash and Array

2009-02-21 Thread Cyrus Dev
;2"=>"Sat"}] now can I convert this as like above like active record type of array ? Frederick Cheung wrote: > On Feb 21, 11:00�am, Cyrus Dev > wrote: >> which contains array of hashes >> >> when we write simple find method of any tables it ret

[Rails] Hash and Array

2009-02-21 Thread Cyrus Dev
Hello all I have problem regarding hash and array I am retriving records using find method and then doing some operations on it and finally i got results like following [{"1"=>"75225", "2"=>"Sat"},{"1"=>"75225", "2"=>"Sat"}] which contains array of hashes when we write simple find method of a

[Rails] Re: Hash

2009-02-19 Thread Cyrus Dev
:20 AM, Cyrus Dev wrote: >> Hi, >> thanks >> >> but I have instance like this >> >> @restaurant= Restaurant.find(:all, > :select => 'restaurants.*, 22 AS diffinmiles' >> but this is not work >> >> so that i have to not chang

[Rails] Re: Hash

2009-02-19 Thread Cyrus Dev
can direct access like db values ? any idea ? Frederick Cheung wrote: > On 19 Feb 2009, at 10:54, Cyrus Dev wrote: > >> >> Hello all >> >> any one has idea how to add new column to existing hash array ? >> > by hash array do you mean an array of hashes

[Rails] Hash

2009-02-19 Thread Cyrus Dev
Hello all any one has idea how to add new column to existing hash array ? I have one hash instance like @restaurant using each with index i m looping it and want to add new key and value to each row how can i do that ? please help me thanks -- Posted via http://www.ruby-forum.com/. --~--~-

[Rails] Re: Geo Code

2009-02-19 Thread Cyrus Dev
Thanks Andrew but is there a way that i can do with geo code kit ? any idea ? Andrew Porter wrote: > Cyrus Dev wrote: >> >> I want to find distance in miles between 2 points , I have lattitude and >> longitude of both points , > > I do this (inside a model what

[Rails] Geo Code

2009-02-18 Thread Cyrus Dev
Hello Everyone, any one has idea abt geocode ? in rails I want to find distance in miles between 2 points , I have lattitude and longitude of both points , how can i do that ? please help me thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~--

[Rails] Attachment fu plugin image upload

2009-02-06 Thread Cyrus Dev
Hello Everyone, Anybody know how to upload multiple images using attachment fu plugin thanks in advance -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Call Model Method

2009-02-03 Thread Cyrus Dev
Hello Everyone any one know how to call model method in controller ? I have one method that is in model and want to call from another controller please help me thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message bec

[Rails] Re: Validation - Credit Card Validation

2009-02-03 Thread Cyrus Dev
Hello Thanks , is also do payment gateways processsing ? this plugin ? -- 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,

[Rails] Validation - Credit Card Validation

2009-02-03 Thread Cyrus Dev
Hello Everyone any one know how to validate credit card information in rails ? please help me thanks in advance -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Regarding Hosting at Godaddy

2008-12-17 Thread Cyrus Dev
Hello all anyone know how to setup rails application on Godaddy shared linux server.. ? I uploaded site but still my site is not appearing on preview dns server anyone has idea abt this. ? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You rece

[Rails] Re: [How to pass argument from a script to rails...]

2008-09-28 Thread Max Dev
Thank you for replies. > Have you looked at what #{ARGV} evaluates to? > would ARGV.join(" ") help? Yes, this works well with a call like: system (or sh) ("'rails' #{ARGV.join(' ')}") but not with: `"'rails' #{ARGV.join(' ')}"` sh: 'rails' prova -d mysql: not found I tried different forms

[Rails] Re: [How to pass argument from a script to rails...]

2008-09-28 Thread Max Dev
Thank you very much Frederick, this has opened my eyes. Then, my mistake was to believe that I need "" for interpolation in ``. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[Rails] [How to pass argument from a script to rails...]

2008-09-27 Thread Max Dev
I have a script with which I want to create a rails app. Then not something like: $ rails -d mysql name_app in terminal, but from the script. In the script I get the app name, database etc. After some operations I would like to create the app from the script, but when I try something like `ra