[Rails] Re: Is it possible to serialize an ActiveRecord object?

2019-12-03 Thread Daniel Baez
> Have you considered the difficulty of keeping two data stores in sync? > > If you can confidently answer all of those questions and you still want to > pursue this design, then I would begin again with a data-mapper pattern > instead. > > On Tuesday, December 3, 2019 at 1

[Rails] Is it possible to serialize an ActiveRecord object?

2019-12-03 Thread Daniel Baez
weeks ago, my background is mostly java xD (finding Ruby great BY THE WAY hahaha) Thank you Daniel -- 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 ema

Re: [Rails] Building basic airline reservation system with Ruby on Rails

2019-02-12 Thread Daniel Toma
Rob, thank you for your reply. I understand what you're saying about there really being no way to avoid using js. I feel like the combination I can look forward to is using js in the front and rails in the back. On Monday, February 11, 2019 at 5:29:04 AM UTC-5, Rob Jonson wrote: > > > I sen

Re: [Rails] S3 Bucket Policy

2019-02-10 Thread Daniel Dunckel
t;Sid":"1", > "Effect":"Allow", > "Principal":"*", > "Action":["s3:PutObject","s3:GetObject"], > "Resource":"arn:aws:s3:::pininterest/*", > "Condit

Re: [Rails] S3 Bucket Policy

2019-02-10 Thread Daniel Dunckel
I see your URL is missing a double quote at the beginning. Try using jsonlint.com On Mon, Feb 11, 2019 at 4:42 AM David Merrick wrote: > Why I am getting this Error This policy contains invalid Json? > > { > "Version":"2019-02-11", > "Id":"http referer policy example", > "Statement":[ >

Re: [Rails] Building basic airline reservation system with Ruby on Rails

2019-02-10 Thread Daniel Toma
On Sunday, February 10, 2019 at 2:25:30 AM UTC-5, hasan...@gmail.com wrote: > > Daniel, > > On Sat, 9 Feb 2019 at 23:13, Daniel Toma > > wrote: > >> I just can't think of how this would be done, and I was wondering if >> anyone had an idea. >> > >

[Rails] Re: Building basic airline reservation system with Ruby on Rails

2019-02-10 Thread Daniel Toma
ay, February 10, 2019 at 2:13:34 AM UTC-5, Daniel Toma wrote: >> >> I'm 5 weeks into a training program that consists of Ruby, Ruby on Rails, >> Javascript, and React. I'm about the wrap up the 3-week module for Ruby on >> Rails, and chose to do a pro

Re: [Rails] Run/Migrate Older Ruby Application (Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1)

2018-12-23 Thread Daniel Dunckel
Your Gemfile is specifying a ruby version. Change or remove that and run bundle again. On Sun, Dec 23, 2018 at 11:34 AM wrote: > I am taking over an app that has not been developed for a few years. > Currently the app is on Github and I have a local Ruby on Rails install on > my Ubuntu 16.04 box

[Rails] ActiveStorage: configure file destination during upload

2018-07-17 Thread Daniel Dunckel
Currently, when the *root* is configured, all uploaded files go to that directory. I'd like to be able to modify the *root* when a form is submitted to create an object with attachments. This is helpful in our multi-tenant environment where we want to limit storage usage. Anyone know of a way

[Rails] Controller tests throw "No route matches" exception when routing throw a Rack application

2018-01-20 Thread Daniel Puglisi
I'm migrating various static routes to a wildcard route that points to a custom Rack application – very similar to this https://stackoverflow.com/a/17595218/587320 Now the tests for the affected ActionController::TestCase's throw *ActionController::UrlGenerationError: No route matches *excepti

Re: [Rails] Re: Yet another "convert ruby script into a portable executable" tool

2017-10-08 Thread Daniel Loureiro
reproducing the same steps they have used (link here <https://github.com/phusion/traveling-ruby/tree/master/linux>). I wish I had more time to update it, but anyways please feel free to contribute. -- Daniel Loureiro -- On Sun, Oct 8, 2017 at 8:54 AM, Jesse Zink

[Rails] Problem when inheriting subclass

2017-08-16 Thread Daniel Faiole
Hi, I can't seem to find anything on the web regarding this error I found. I don't know if it's something i did wrong or just some kind of bug. I have 2 engines, named "Pes" and "Iss". "Pes" is the most atomic engine in our project and all other engines will add it as a dependency, it has these

[Rails] Re: Yet another "convert ruby script into a portable executable" tool

2016-09-26 Thread Daniel Loureiro
And here are some usage examples: Install: gem install rb2exe Example I - Simple script: echo "puts 'Hello world'" > test.rb rb2exe test.rb ./test # Hello world Example II - Multi source project: mkdir test cd test echo "STR = 'Hello world'" > a.rb echo "load 'a.rb'" > main.rb echo "puts STR"

[Rails] Yet another "convert ruby script into a portable executable" tool

2016-09-26 Thread Daniel Loureiro
Hi guys, I was struggling to find a tool to convert my ruby scripts into portable executable apps. I tried a lot of solutions (crate, releasy, etc) but none of them seemed to work. They are or too complicated for my taste or just broken. So, I wrote my own tool: https://github.com/loureirorg/r

[Rails] Re: Map ActiveRecord to external database

2015-12-18 Thread Daniel Ritter
Here is a good link which solved my problem: http://ilikestuffblog.com/2012/09/21/establishing-a-connection-to-a-non-default-database-in-rails-3-2-2/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Map ActiveRecord to external database

2015-12-17 Thread Daniel Ritter
Hi, Im writing a Plugin for redmine. My Problem is to map an ActiveRecord to an external database. Here's my class: -- class FtpUser < ActiveRecord::Base attr_accessor :created_at, :password; attr_writer :uid, :gid; attr_reader :user, :

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-23 Thread Daniel Loureiro
#x27;t using angular, some tips are on the server side): http://www.learnwithdaniel.com/2015/10/rails-angular-authentication/ -- Daniel Loureiro -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this grou

[Rails] Problem with HABTM relation

2015-05-08 Thread Daniel Goldberg
When I try to create some User with the POST below I received the following msg: Completed 404 Not Found in 17005ms (Views: 1.7ms | ActiveRecord: 6.6ms). I debugged a little and I find this error Couldn't find Shared::Category with ID=5 for Shared::User with ID= I don't know really what's go

Re: [Rails] String with single quote

2015-04-26 Thread Daniel Evans
b2c0d0278c8e%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/6e33193e-44b3-441b-8da7-b2c0d0278c8e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel Evans -- You receive

[Rails] I need advice

2015-03-28 Thread Felix Daniel Leal Corova
Hi, I am new to ruby on rails, I am a student of Ing. Infomatica. the 9th semester. Ruby on rails practicing, I've ever tell I need more information. I wonder if I can build the gems? or just experts? to use a Datagrid is necessary to install a gem? I am working on linux, ubuntu 14.10 rails 4.2.0

Re: [Rails] Accessing a "helper" method "foo" defined in a controller, in a .js file

2015-03-24 Thread Daniel Evans
; https://groups.google.com/d/msgid/rubyonrails-talk/5a2078b6-c86e-4b39-b601-d242ceef804d%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/5a2078b6-c86e-4b39-b601-d242ceef804d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options,

Re: [Rails] Database connections, I cannot decide which way I should go!

2015-03-16 Thread Daniel Tordable Dasilva
entity. >> >> The ARTICLES table has a value which lists the authors of the articles, >> normally 2-7 authors per article. Here, I am not sure if this short be an >> array or just a string. I currently have it as a string. > Is this a collection of AUTHOR_IDs, or names

Re: [Rails] Re: New Rails project looking for beginners rails developers

2015-03-16 Thread Daniel Tordable Dasilva
And what if I even don't know rails at all nor ruby? El 16/03/2015 a las 9:43, Rails_beginner escribió: > I am interested. > please contact me on theb...@gmail.com > > > > On Tuesday, March 10, 2015 at 8:23:01 PM UTC+1, Olivier Batard wrote: > > Hello ! > > I'm new to the rails world, and

Re: [Rails] Coalesce (ruby method, not a SQL question)

2015-03-04 Thread Daniel Loureiro
> > Hi everyone, > > > > it's a silly question (and I'm kind of ashamed to ask it), but I frequently must do things like that: > > > > a.present? ? a : b > a.presence || b Whoa! Thank you Scott, you save my day. -- Daniel Loureiro --

[Rails] Coalesce (ruby method, not a SQL question)

2015-03-04 Thread Daniel Loureiro
ecause "" || "x" returns "" (and the main use for this is with strings). Thanks, Daniel Loureiro http://www.learnwithdaniel.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this

Re: [Rails] List of cities in a state

2015-02-08 Thread Daniel Loureiro
Em domingo, 8 de fevereiro de 2015 22:27:38 UTC-2, Walter Lee Davis wrote: > > Have you seen this one? https://github.com/proletarian/carmen-rails I've > used it a couple of times, but I will give yours a try as well. > Ouch, that awkward moment that you realize that someone already done what

[Rails] List of cities in a state

2015-02-08 Thread Daniel Loureiro
for those whom it may concern, I created a simple ruby gem called "city-state" that returns a list of states in a country and also a list of cities/towns in a state. It simple like that: CS.states(:us) # => {:AK=>"Alaska", :AL=>"Alabama", :AR=>"Arkansas", :AZ=>"Arizona", :CA=>"California", :CO=

[Rails] Re: Content Compression via Rack::Deflater,Rails and Ngnix

2015-01-23 Thread Daniel Loureiro
tem - "GZip Compression": http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets). -- Daniel Loureiro -- 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 ema

[Rails] Re: Devise error - Reg

2015-01-19 Thread Daniel Loureiro
se_controller? protected def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_up) << :avatar end end -- Daniel Loureiro http://www.learnwithdaniel.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To un

[Rails] Re: Add multiple user support for a function

2015-01-19 Thread Daniel Loureiro
ubject]).conversation > flash[:success] = "Message has been sent!" > redirect_to conversations_index_path(conversation) > end > -- Daniel Loureiro http://www.learnwithdaniel.com -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: Full Time Job :: Sr. Ruby On Rails Developer (San Francisco, Oakland)

2015-01-19 Thread Daniel Loureiro
Too bad I'm brazilian, so I have to content myself with an equivalent job, but getting less than 7k/year (with lucky and only for those who have more than 5 years of experience) :/ Oh boy, you guys don't know how lucky you are. -- Daniel Loureiro http://www.learnwithdaniel.com

[Rails] Re: uninitialized constant add_column2::Tier3DiscountGroup

2015-01-19 Thread Daniel Loureiro
escription, :text unless column_exists? :tier_3_discount_groups, :description -- > > Daniel Loureiro http://www.learnwithdaniel.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop rece

[Rails] Re: Devise routing to views inside of gem for one of my models

2015-01-19 Thread Daniel Loureiro
is that all your routes? There's not a "get /biz_users/(:something)" or a "get /(:something)" before? -- Daniel Loureiro -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this grou

[Rails] Re: Installing ruby 2.1 and rails 4.2 in centos 7

2015-01-19 Thread Daniel Loureiro
Try this: source $HOME/.rvm/scripts/rvm rails s My guess is that you installed ruby via rvm *and* you don't add "source $HOME/.rvm/scripts/rvm" to your bash_profile. -- Daniel Loureiro -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] Re: How can I? such as "select max(peak_kw) peak,month from sola_daylies group by month;"

2015-01-19 Thread Daniel Loureiro
SQL*, do with " *ActiveRecord::Base.connection.execute*" results = ActiveRecord::Base.connection.execute("select max(peak_kw) peak,month from sola_daylies group by month") pp results[0] -- Daniel Loureiro -- You received this message because you are subscribed to the Google Groups &quo

Re: [Rails] BigDecimal - always change own value after reloading site page

2015-01-19 Thread Daniel Evans
onrails-talk/7ed48cd2-bb8c-493c-aa10-4663861f7b97%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel Evans -- You received this message because you are subscribed to the Google Groups "Rub

Re: [Rails] migration problem

2014-11-30 Thread Daniel Evans
e 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 group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the w

[Rails] Problems with Instance Variable in Controllenr

2014-11-05 Thread Daniel Ritter
I've got problems with an instance variable in a controller. the varible is initialized and has some entries which i give out in the second view(create). but in the third view (export) I become back this message: ...ActionView::Template::Error (undefined method `length' for nil:NilClass

[Rails] Re: Need Quality E-Commerce Samples

2014-10-30 Thread Daniel
http://www.opensourcerails.com/ http://www.opensourcerails.com/spree/ On Wednesday, October 29, 2014 11:17:10 PM UTC+1, john...@gmail.com wrote: > > My boss is finally willing to listen to moving to a quality open sourced > platform for our e-commerce web site, but she needs 'concrete examples' t

Re: [Rails] ActiveRecord::StatementInvalid (OCIError: ORA-00001: unique constraint (xxxxxxxx) violated:

2014-09-30 Thread Daniel Kim
help...! Daniel On Sat, Sep 20, 2014 at 11:12 AM, Walter Lee Davis wrote: > On Sep 18, 2014, at 5:48 PM, kimda wrote: > > > If I write the error message instead of xx, it is: > > OCIError: ORA-1: unique constraint (ABCSIGN_DBA.PK_ATTEND_IP) > violated: INSERT INT

Re: [Rails] Ruby on Rails syntax

2014-07-30 Thread Daniel Evans
alk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/e5814049-71fa-4096-a959-9b26a3b992a3%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/e5814049-71fa-4096-a959-9b26a3b992a3%40googlegroups.com?u

[Rails] Re: 'Learn Ruby on Rails' book is free today

2014-04-28 Thread Daniel Kehoe
November 27, 2013." Sorry if anyone is disappointed. -- Daniel Kehoe, author of ‘Learn Ruby on Rails’ On Monday, April 28, 2014 7:16:16 PM UTC-7, Colin Stodd wrote: > > I subscribed, still unsure on how to get the free download... > > On Wednesday, November 27, 2013 10:28:

[Rails] [ANN] 'Learn Ruby on Rails' book updated for Rails 4.1

2014-04-20 Thread Daniel Kehoe
.com/bigg2/ However, the book covers Rails 4.1 and prepares a beginner for further study. More about the book ‘Learn Ruby on Rails’: * http://learn-rails.com/learn-ruby-on-rails.html --    Daniel Kehoe   dan...@danielkehoe.com   The RailsApps Project   http://railsapps.github.io/ -- You received th

[Rails] Looking for a CMS gem

2014-01-14 Thread Daniel Orner
Hey all! I haven't used a CMS before, but a new project requires one. Rails seems to have a whole whack of them and I'm not sure which ones match my requirements. The library must: - be fully themeable; the overall layout is going to be made from scratch - allow custom content for pages (i.e. a d

[Rails] Xml problem remove node

2014-01-07 Thread Daniel Van den oord
Hi i am trying to create a sort of xml proxy.. Receving xml through rest and then using nokogiriand mechanize posting it to another api. This last api isnt accepting true xml as i will explain. The api needs 1 2 I am using rails4 with the activeresource gem installed.. The p

Re: [Rails] ‘Learn Ruby on Rails’ book is free today

2013-11-28 Thread Daniel Kehoe
On Thursday, November 28, 2013 1:05:52 PM UTC-8, trekr67 wrote: > > Anyone else who is a newbie Rails developer and would like to join me > studying Daniel Kehoe's book? > You might find study companions on a Facebook group: https://www.facebook.com/groups/rubyandrails/ Als

[Rails] ‘Learn Ruby on Rails’ book is free today

2013-11-27 Thread Daniel Kehoe
further study. Start with 'Learn Ruby on Rails' and you'll be well-prepared for other excellent books, such as * http://ruby.railstutorial.org/ruby-on-rails-tutorial-book * https://leanpub.com/tr4w * http://pragprog.com/book/rails4/agile-web-development-with-rails * http://www.man

[Rails] Re: how to fix 'rails server' problem when I set "gem 'mysql'" in gemfile

2013-10-16 Thread Daniel Dimitrov
Try this: http://stackoverflow.com/questions/16507408/windows-rails-server-error-mysql-bundler-railties Daniel Dne pondělí, 14. října 2013 17:58:57 UTC+2 Clarkz napsal(a): > > I install mysql in rails , but when submit "rails server" ,it is appear > this problem and the ser

[Rails] Performance problem generating URL for thousands of images, due to hitting HDD for each one

2013-09-19 Thread Daniel Magliola
ges that show tons of avatars, and we're getting a slowdown due to these HDD hits, so we'd like to improve them, without having to manually generate the URLs, since the abstraction Carrierwave provides is *awesome*) Any thoughts will be greatly appreciated. Thank you! Daniel -- You re

[Rails] Re: Mongrel hangs with 100% CPU / EBADF (Bad file descriptor)

2013-08-28 Thread Daniel Weber
Sorry, I didn't mean to hurt your feelings. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+u

[Rails] Re: Mongrel hangs with 100% CPU / EBADF (Bad file descriptor)

2013-08-27 Thread Daniel Weber
I have had the same issue. It does not always reproduce, but I have a machine that runs into it at least once a day. ruby 1.9.2p136 gettimeofday is being called as fast as possible, using up 99% of a CPU. Has anyone found a solution? -- Posted via http://www.ruby-forum.com/. -- You receive

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 wrote: > Did you ever figure this out? I am having the same problem and can't find > a good solution anywhere. >> >> -- > You received this message becau

[Rails] nested forms in activeadmin is mass assigning

2013-05-02 Thread Daniel Hatcher
Here is my question . -- 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 fr

[Rails] Mobile-Computer App Idea (Unique, I Know) - Seeking Developer

2013-04-06 Thread Daniel Kodner
Please email me, dan.kod...@gmail.com, to know more. Located in San Francisco. -- 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.

[Rails] Pluralization with default_locale not working (Rails 4 Beta 1)

2013-03-26 Thread Daniel Arnreich
Hi, I am just trying to setup an application in Rails 4, Beta 1. The application is (exclusively) in German Language and therefore also the URLs should be German. I want to create a controller and model for an entity called "Region"; Rails pluralizes that to "Regions", but it should be "Regi

Re: [Rails] how to deploy rails app to a vps

2013-03-04 Thread Daniel Compton
inode.com https://www.digitalocean.com If you can give us more of an idea of what kind of resources your app will need we can help you find the right VPS provider. Thanks, Daniel. On Tuesday, 5 March 2013 at 5:32 AM, k nile wrote: > How to deploy a ruby on rails application from development

[Rails] Testing Torquebox scheduled jobs with rspec

2012-12-21 Thread Daniel Sousa
Hi everyone, I am using Rspec for testing in a Ruby on Rails application for a client. We are using Torquebox and he asked me to created a Torquebox scheduled job [1], but I can't find any information on how to write tests for it. Can anyone help me? Best regards, Daniel Sousa 1:

[Rails] Re: Authlogic Rails 3

2012-11-20 Thread Daniel Sanchez
Up 4. wrote in post #970286: > I think you should add the following line in your gem file: > > gem "rails3-generators" > > run "bundle install" or "bundle update" and then run "rails g > authlogic:session UserSession" to create UserSession class > > It is required to add your required generators (s

[Rails] With streaming on, closed client connections cause Fatal Broken Pipe errors

2012-11-16 Thread Daniel Lucraft
Once we turned streaming on on www.songkick.com, we started getting these errors on production quite a bit. (See below) It appears that if the client closes the connection during the rendering of the template, the next attempt to write a portion of the page to the connection will fail with a Br

[Rails] Re: No stacktrace from faulty view code

2012-10-17 Thread Daniel Sundqvist
This issue is solved in my older thread here: http://www.ruby-forum.com/topic/4406056 Thanks anyway guys. Daniel -- 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 g

[Rails] Re: Problem setting log level

2012-10-17 Thread Daniel Sundqvist
Christian: Hey, that was actually the problem! :) I was having a blank in the path of my project directory, and removing that fixed the problem. Great, this was beginning to get somewhat frustrating... I'm am running Debian Wheezy with rvm and Ruby 1.9.3-p286 so the setup is pretty similar. T

[Rails] No stacktrace from faulty view code

2012-10-15 Thread Daniel Sundqvist
Hello I am having trouble with my rails environment. Everything works fine excepts that errors in view code does not show a stacktrace, just the "We're sorry, but something went wrong." page, and the log just shows a "500 Internal Server Error" line. I am running in development mode, and errors i

[Rails] Re: Problem setting log level

2012-09-24 Thread Daniel Sundqvist
Yes it is set to true. It seems like this is the default behavior on my rails installation. I did a test: i created a new rails project, generated a scaffold model, inserted a faulty link_to helper like: <%= link_to 'bogus', some_bogus_non_existing_path %> in one of the views. I start the developme

[Rails] Re: Problem setting log level

2012-09-24 Thread Daniel Sundqvist
walterdavis: "We're sorry, but something went wrong" is the error message i get. When i start the development server i see "Rails 3.2.8 application starting in development on http://0.0.0.0:3000";. log/development.log is the logfile that is used. Seems to me that i'm in development mode. I hav

[Rails] Re: Problem setting log level

2012-09-23 Thread Daniel Sundqvist
Update: Seems like the right log level is set. But for som reason i dont see an error message and a stacktrace when encountering an error. Is there more configuration to be done or should this be enough to be able to see the stacktrace? -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Problem setting log level

2012-09-23 Thread Daniel Sundqvist
Btw I am using Rails 3.2.3. I have checked that Rails.logger.level = 0 so it should be :debug. And i'm also sure that i'm running in development mode. But still I just get this one line telling me about an internal error wich doesnt help me a bit. -- Posted via http://www.ruby-forum.com/. --

[Rails] Problem setting log level

2012-09-23 Thread Daniel Sundqvist
"7"]] Rendered characters/show.html.erb within layouts/application (22.1ms) Completed 500 Internal Server Error in 25ms i've also tried setting: config.log_level = :debug in config/enviroments/development.rb but the log looks the same. I'm i missing something here? Tha

[Rails] Re: Ruby problem solving Skills

2012-09-01 Thread Daniel
my favorite is puzzlenode.com. the problems there are a bit harder but very interesting. http://rubyquiz.com/ is maybe the most popular one easier problems can be found at http://ruby-challenge.rubylearning.org/ On Wednesday, August 29, 2012 12:53:26 PM UTC+8, thil wrote: > > Hi , > > Is ther

[Rails] Re: dynamic loop in a hash

2012-08-03 Thread Daniel
This should work: items = 12.times.map { [i.day.ago.to_date, { :coder=>@numdeployed, :imedidata=>@numdeployed, :balance=>@numdeployed, :CTMS=>@numdeployed } ] }.flatten result = Hash[*items] Daniel On Friday, August 3, 2012 5:03:04 PM UTC-4, Ruby-Forum.com User wrote: >

[Rails] Re: [ANN] Rails 3.2.8.rc2 has been released

2012-08-03 Thread Daniel Evans
Our test suite (rspec/capybara+webkit/jasmine) which was broken by 3.2.7 is working perfectly in 3.2.8.rc2. Thanks! --Daniel Evans On Friday, August 3, 2012 8:29:57 AM UTC-6, Santiago Pastorino wrote: > > Hi everyone, > > Rails 3.2.8.rc2 has been released. If no regressions are f

Re: [Rails] CSRF tokens for mobile apps

2012-05-20 Thread Daniel Shimoyama
Anish, Check out this post http://stackoverflow.com/questions/5669322/turn-off-csrf-token-in-rails-3 see u 2012/5/20 Anish : > I have an existing rails backend website which makes json ajax calls to my > server and I was passing csrf tokens in every ajax call. Now,I am developing > a mobile iOS

[Rails] Re: Authentication

2012-05-01 Thread Daniel Coston
Frederick Cheung wrote in post #1059064: > On May 1, 2:00pm, Daniel Coston wrote: >> Application will not authenticate [sends alert of invalid credentials]. >> Using user credentials created via rake db:seed. How do I get it to >> authenticate? >> >> Agent Model

[Rails] Re: Authentication

2012-05-01 Thread Daniel Coston
Colin Law wrote in post #1059060: > On 1 May 2012 14:00, Daniel Coston wrote: >> Application will not authenticate [sends alert of invalid credentials]. >> Using user credentials created via rake db:seed. How do I get it to >> authenticate? > > Which bit is not worki

[Rails] Authentication

2012-05-01 Thread Daniel Coston
Application will not authenticate [sends alert of invalid credentials]. Using user credentials created via rake db:seed. How do I get it to authenticate? Agent Model def Agent.authenticate(name,password) if agent = find_by_name(name) if agent.hash == encry

[Rails] Cisco IP-Phone integration in a rails app?

2012-03-07 Thread Daniel P.
e is a CLI tool to make calls with an IP-Phone? Atm, I've no idea where to start so any idea would be helpful. Thanks Daniel -- 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

[Rails] Re: aanyone help me for pdf formate

2012-01-24 Thread Daniel Jackson
about Ruby on Rails and its development, Then just check this out. http://innoppl.com/why-its-a-technology-to-really-consider/ Have a Nice Day... Regards Daniel Jackson On Jan 20, 2:28 pm, sudhir singh tomar wrote: > i installed the prown gem for getting my data in pdf formate but

[Rails] Re: PDF Thumbnail screen in a page

2012-01-24 Thread Daniel Jackson
-technology-to-really-consider/ Have a nice day. Regards Daniel Jackson On Jan 22, 11:20 am, Joachim Cheng wrote: > Hi bro/sis, > > Do you know the plugin to show the big icons of PDF (has attached as > above) in the webpage? > How to write a code? > I am using paperclip and ra

Re: [Rails] RoR application design for real estate web site

2012-01-07 Thread Daniel Negri
You can see some projects at http://www.opensourcerails.com/ with source codes included. My sugestion to you: learn from GitHub, partipate, commit to that projects. -- Daniel Negri e: danielgomesne...@gmail.com d: +55 61 8494 1441 Skype: danielnegri Follow me on Twitter <http://twitter.

Re: [Rails] Duplicate forms after click

2012-01-06 Thread Daniel Negri
I'm using the very old trick: // Prevent double click $('form').submit(function(){ $('input[type=submit]', this).attr('disabled', 'disabled'); }); -- Daniel Negri e: danielgomesne...@gmail.com d: +55 61 8494 1441 Skype: danielnegri Follow me

Re: [Rails] How to migrate on another server?

2012-01-06 Thread Daniel Negri
2,000 VM's with Puppet and Ganeti with very success, in future we will migrate to OpenNebula or OpenStack. If you have some doubts about it, please send one note. -- Daniel Negri e: danielgomesne...@gmail.com d: +55 61 8494 1441 Skype: danielnegri Follow me on Twitter <http://twitter.com/#

Re: [Rails] Re: Is Rails on IIS dead?

2011-12-16 Thread Daniel Shimoyama
No, its over. 2011/12/16 Frederick Cheung : > >> >> You should file a bug report with Microsoft asking them to create ruby/rails >> cgi/gateway to deploy applications via IIS. Maybe the world's most popular >> commercial platform should learn to support middleware other than their own. >> > Is M

[Rails] exciting position for Ruby on Rails developer in London immediate start

2011-12-01 Thread Daniel J.
Hi please do get in touch if you meet the criteria below and your interested in an exciting Position for Talented Ruby on Rails Web & Mobile Developer in Old Street London. daniel.ju...@yahoo.co.uk Our company operates a social networking website focussed around dining and eating out. The Role: W

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2011-11-16 Thread daniel a.
change sqlite3-ruby with sqlite2 on Gemfile -- 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

[Rails] access requesting IP from actionwebservice controller/model

2011-11-07 Thread Daniel Buchan
e web_service_api ApiDisopred def submit(sequence, email, name, fpr, psiblast, psipred) [A GREAT DEAL OF LOGIC THAT WORKS] results = SubmitMessage.new results.message = @message results.job_id = @job.id results.state = @state return results end end ---

[Rails] Re: Cannot launch ruby server

2011-10-17 Thread Daniel Nachbar
On Oct 17, 6:35 am, Bartek Kowalski wrote: > Hi, > > I am on Mac OS X Lion. > > I installed Ruby on Rails and mysql2 gem. When I try to run the server > with "rails server" command, I get the following errors: ... My guess is that you are tripping over some of the OS X preinstalled ruby component

[Rails] Re: ExecJS::RuntimeError in Users#index when doing second demo.

2011-10-16 Thread Daniel Nachbar
On Oct 16, 12:03 pm, Carlos Gustavo Guerra wrote: > I had the same problem, that I solved installing a java runtime in > Ubuntu: > sudo apt-get install nodejs > > I follow this post:http://www.adanacs.com/node/3 To be clear, the problem is caused by the lack of javascript runtime support NOT java

[Rails] Re: ruby/rails training

2011-10-13 Thread Daniel Nachbar
On Oct 12, 7:10 pm, Max wrote: > I was wondering if any of you can recommend some ruby/rails training? ruby.railstutorial.org Specifically designed to get you to the point where you can understand the videos at railscasts.com. Dan Nachbar -- You received this message because you are subscrib

[Rails] Re: ROR setup on ubuntu machine

2011-10-13 Thread Daniel Nachbar
On Oct 12, 3:40 pm, Brandon Black wrote: > Couldn't disagree more. RVM actually makes like a lot easier for > beginners IMO. ... > Particularly on an OS X dev environment, native ruby > is a pain and RVM alleviates most of those pain points. ... +1 Dan Nachbar -- You received this message bec

[Rails] Re: downgrade rails 3.1 project from ruby 1.9.2 to 1.8.7

2011-10-04 Thread Daniel Nachbar
On Oct 4, 11:30 am, "Garrett S." wrote: > > I think you want to use RVM -http://beginrescueend.com/ > > So if I use rvm or pik (on windows:https://github.com/vertiginous/pik/) > that should clear up those problems? Sorry, yes pik for Windows. I assume pik works comparably. (I know almost nothing

[Rails] Re: downgrade rails 3.1 project from ruby 1.9.2 to 1.8.7

2011-10-04 Thread Daniel Nachbar
On Oct 4, 12:38 am, "Garrett S." wrote: ... > If anyone has any tips on how to clean this up and successfully > downgrade my ruby version I would greatly appreciate it! I think you want to use RVM - http://beginrescueend.com/ Dan Nachbar -- You received this message because you are subscribed

[Rails] Re: tutorial: gravatar_image_tag problem

2011-10-03 Thread Daniel Nachbar
On Oct 2, 2:03 pm, Allen Maxwell wrote: > Please disregard the post... I think i have it figured out... Glad to hear it. One thing worth noting for the next time you get stuck - I'm not sure if the author mentions it prominently, but the source code for the completed tutorial application is avai

[Rails] Re: First time with Ruby - how to print "Hello World!" via web-server

2011-09-28 Thread Daniel Nachbar
On Sep 28, 3:16 pm, -- -- wrote: > I watched the "Lesson 1: From zero to deploy" video from > ruby.railstutorial.org and... where exactly does he say how to make just > one simple "Hello world" line appear? > > I've learned things about git, Github and Heroku, but if you ask me > where can I uploa

[Rails] Re: First time with Ruby - how to print "Hello World!" via web-server

2011-09-28 Thread Daniel Nachbar
On Sep 28, 10:09 am, -- -- wrote: ... > The closest "answer" I could find was that unlike HTML/PHP, Ruby needs a > specific file structure (controllers, models, views) ... By the way, this is incorrect. You are confusing Ruby (the language) and Rails (the web framework). Ruby can be run as a st

[Rails] Re: First time with Ruby - how to print "Hello World!" via web-server

2011-09-28 Thread Daniel Nachbar
On Sep 28, 10:09 am, -- -- wrote: > Thing is, I've been able to find ton of tutorials, but NOT ONE answers > the most basic question - what exactly do I have to upload to the server > to simply get a (any) response from Ruby (through a browser, using a > regular shared webhosting). ... Have you

[Rails] What is the correct behaviour when manually specifying which fixtures to load?

2011-09-20 Thread Daniel Abrahamsson
I have a problem with fixtures not being removed between tests and would like to know if this is expected behavior or not. For example, say that I have a model Car, and a car.yml fixtures file. I have two test cases CarTest and DealerTest. In the first test, I want to use fixtures, so I define i

[Rails] Re: generating html files

2011-09-19 Thread Daniel Nachbar
On Sep 19, 2:10 pm, "Jochen Kächelin - 8frogs.de" wrote: > what the recommended way to generate static html files based on a database > structure, for example 1000 product pages. > > i would like to specify s template and embed css styles. > > i use rails 3.1 > > thanx I'd look into using fact

[Rails] Re: Rails development advice

2011-09-10 Thread Daniel Nachbar
On Sep 10, 5:28 am, Guy wrote: > Hello, > > I'm new to rails but not new to programming. Yet I feel the lack of an > organized environment for development is somewhat hindering my ability > to learn rails thoroughly (3 console windows, text editor with a bunch > of plugins, database editor and vie

[Rails] Re: Rails Hosting

2011-09-09 Thread Daniel Nachbar
I'm a big fan of Heroku as well. Another option, although they aren't specifically rails-oriented, is dreamhost.com Pros - - Cheap -- Unlimited domains (excluding registration) bandwidth, storage, shell accounts, email addresses, mailing lists, etc all for under $10/month. (They also have o

Re: [Rails] problems with oracle xe server connection

2011-09-03 Thread Daniel Ivovich
The oracle:thin syntax is usually for JDBC connections in my experience. Per the readme and my own experience, you'll want to specify 1 of 4 possible formats. 1. just the TNS name as the database key like 'xe' if you have the TNS_ADMIN environment var

[Rails] Devise + Forem: undefined method weeks on Fixnum

2011-08-25 Thread Daniel Waite
I'm getting the following message when trying to start Webrick or console. ... devise-1.0.11/lib/devise.rb:89:in '': undefined method 'weeks' for 2:Fixnum (NoMethodError) After trying to upgrade my app to Rails 3.1 (edge) so that I may use the Forem engine. I'm under the impression this error is

  1   2   3   4   5   >