[Rails] Secrets decryption error appeared (ActiveSupport::MessageEncryptor::InvalidMessage)

2018-04-12 Thread thomas
Hi, How to fix the recent error regarding rails secrets encryption and ruby? I have one container running since week start that allows we to "rails secrets:edit" successfully. Today, if I carbon copy the source code, do new bundle install and secrets fail. What is going on? Message from ap

[Rails] Re: Secrets decryption error appeared (ActiveSupport::MessageEncryptor::InvalidMessage)

2018-04-13 Thread thomas
o the ruby systems gemset, however, gemset is the latest version per below. Encryption key is identical, 100 times copied over or sent in env var ;) for not believing the app fails to start. $ sudo gem update --system Latest version already installed. Done. Cheers, Thomas On Thursday, Apri

[Rails] Re: Secrets decryption error appeared (ActiveSupport::MessageEncryptor::InvalidMessage)

2018-04-13 Thread thomas
; gemset is the latest version per below. Encryption key is identical, 100 > times copied over or sent in env var ;) for not believing the app fails to > start. > > $ sudo gem update --system > Latest version already installed. Done. > > Cheers, Thomas > > On Thursday,

Re: [Rails] Re: Secrets decryption error appeared (ActiveSupport::MessageEncryptor::InvalidMessage)

2018-04-13 Thread thomas
http://guides.rubyonrails.org/security.html#custom-credentials On Friday, April 13, 2018 at 11:31:42 AM UTC+1, Ralph Shnelvar wrote: > > Thomas, > > Could you point me at documentation about credentials v. encrypted > secrets, please? > > Ralph > > > > Friday

[Rails] (Rails 2.3) Upstream mongrel cluster: how to find out mongrel instance (port) which handles request

2009-12-08 Thread Thomas
rack middleware. Any idea, how to do it? Greetings and thanks! Thomas -- 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-t...@googlegroups.com. To unsubscribe from this group, sen

[Rails] Re: (Rails 2.3) Upstream mongrel cluster: how to find out mongrel instance (port) which handles request

2009-12-09 Thread Thomas
Hi Kristian, this also results in port number '3000', and not in the port number of the upstream mongrel. On 9 Dez., 09:46, Kristian Hellquist wrote: > Cant you just do `request.server_port'  in controller? > > 2009/12/9 Thomas : > > > > > For debugging

[Rails] Re: (Rails 2.3) Upstream mongrel cluster: how to find out mongrel instance (port) which handles request

2009-12-09 Thread Thomas
ct[/mongrel\.\d+/] verboses the mongrel port of the request. Thanks, this solves my problem, Thomas On 9 Dez., 14:06, Kristian Hellquist wrote: > Does request.env.inspect gives you any hint? > > 2009/12/9 Thomas : > > > > > Hi Kristian, this also results in port numbe

[Rails] Re: (Rails 2.3) Upstream mongrel cluster: how to find out mongrel instance (port) which handles request

2009-12-26 Thread Thomas
I was using the following lines in my _debug.html.erb partial: <% session.cgi.inspect.split(/,/).each{ |key| @mongrel_port = key if(key =~ /@port/)} %> <%= @mongrel_port %> Greetings, Thomas On 25 Dez., 00:41, ak wrote: > Thomas, I'm still on Rails 2.1 and woul

[Rails] Rails 3 Validation for special values

2011-09-14 Thread Thomas
Hi everybody, I am creating a site, where people can register, but i only want them to register, if they have a legit code. So let's say I give out the three codes "code1", "code2" and "code3". How can I make sure, that the user only gets registered, when the code gets vaildated? Validate :regis

[Rails] AJAX "render :partial" does not update if specified view matches current view

2009-07-20 Thread Thomas Allen
partial => 'edit' when 'Save and New' render :partial => 'new' The view that contains this form is the "new" partial. So, the idea is that if a user clicks "Save and New" they will have the "ne

[Rails] Re: AJAX "render :partial" does not update if specified view matches current view

2009-07-22 Thread Thomas Allen
Is what I'm attempting possible with render :partial? On Jul 20, 3:55 pm, Thomas Allen wrote: > I have some simple code that renders a form to an element specified in > form_remote_tag :update. The problem is that, if the loaded view > matches the view to render, Rails does nothi

[Rails] Re: AJAX "render :partial" does not update if specified view matches current view

2009-07-22 Thread Thomas Allen
Hm, I'll try explicitly setting the [nonstandard] autocomplete attribute off in the inputs... Thomas On Jul 22, 9:02 am, Frederick Cheung wrote: > On Jul 22, 1:51 pm, Thomas Allen wrote:> Is what I'm > attempting possible with render :partial? > > Have you checked wi

[Rails] No Method Error - Active Record

2009-07-28 Thread Kyle Thomas
I posted this in the Ruby forum but I was told it would be more at home here. I'm very new to ruby so for all I know this could be ridiculously easy. Thank you in advance for any and all suggestions! Here is the error: /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:2962

[Rails] Re: No Method Error - Active Record

2009-07-28 Thread Kyle Thomas
For anyone searching for a solution to this: Add ActiveRecord::Base.logger = Logger.new("debug.log) before the database connection. (Care of halogenandtoast on IRC) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message becaus

[Rails] Dynamic drop-downs in a form_for using AJAX remote_function - Help

2009-08-11 Thread Mark Thomas
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I'm seeing. Hopefully it's a very simple fix, and I simply can't see the forest through all the trees! I am attempting t

[Rails] Re: Dynamic drop-downs in a form_for using AJAX remote_function - Help

2009-08-11 Thread Mark Thomas
k Cheung wrote: > On Aug 11, 2:50 am, Mark Thomas wrote: > > > Hello - > > > ActionView::TemplateError (undefined local variable or method `f' for > > #) on line #1 of app/views/listings/ > > _automodels.html.erb: > > <%= f.collection_select :model, @auto

[Rails] Re: I've decided to use Rails... (I hope I made the right decision).

2009-08-16 Thread Mark Thomas
On Aug 11, 11:20 am, Phlip wrote: > Welcome to the cult. Older sites use older technology because - until 2 years > ago - Rails was a fringe player using an obscure language. Rails now leads the > adoption rate in new projects because it showcase what a fine language Ruby > is. I hadn't heard

[Rails] rake db:test:clone_structure and related tasks fail

2009-08-27 Thread Thomas Allen
environment ** Execute db:structure:dump ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute db:test:purge rake aborted! wrong number of arguments (2 for 1) /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/databases.rake: 344:in `recreate_database' Thanks! Thomas --~--~---

[Rails] Re: rake db:test:clone_structure and related tasks fail

2009-08-28 Thread Thomas Allen
On Aug 28, 3:23 am, Nik Cool wrote: > > rake aborted! > > wrong number of arguments (2 for 1) > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/databases.rake: > > 344:in `recreate_database' > > > Thanks! > > Thomas > > do you

[Rails] Re: rake db:test:clone_structure and related tasks fail

2009-08-28 Thread Thomas Allen
It appears that this is coming from my installed lib/mysql_adapter.rb which has an incorrect signature for recreate_database (and probably for other methods as well), so I think I have what I need to solve the problem now. Thomas On Aug 28, 9:50 am, Thomas Allen wrote: > On Aug 28, 3:23

[Rails] Is there a way to override SQL generated during rake:test:clone_structure?

2009-09-01 Thread Thomas Allen
tables). Is there a way to hook into the database cloning process and override the generated SQL with the correct column type? Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] Testing mail server connection?

2010-04-16 Thread Thomas Allen
Does anybody know of a way to test that the configured mail server connection works? In a similar vein, is there a way to simply test the database connection? I use db:migrate for that now but I'd prefer a method that simply verifies the connection settings. Thomas -- You received this me

[Rails] Gem::FilePermissionError on "rails:freeze:gems" task

2010-04-19 Thread Thomas Allen
s Why does the task want to write to that directory? The output was identical with the --trace option. Thomas -- 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-t...@googlegroups.com.

[Rails] A way to build

2010-04-20 Thread Thomas Allen
oach presents some problems, the first being that "t" is not available in the class scope. So I'm a bit stuck here. Thomas -- 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 ru

[Rails] Re: A way to build

2010-04-21 Thread Thomas Allen
t part }.join ' | ' end end class DashboardController < ApplicationController title :dashboard def index title :home end end <%= title %> Thomas On Apr 21, 3:38 am, Alexandre Friquet wrote: > Hi Thomas, > > > How might I clean this up? My ide

[Rails] Flattening 1:1 models

2010-04-21 Thread Thomas Allen
col| define_method col.to_sym do contact.send col.to_sym end end end I tried doing this with method_missing and respond_to? as well, with similarly poor results, so I was hoping that someone else has found a way to cleanly map attributes in this way. Thomas -- You received this mess

[Rails] Accessing the router from a helper

2010-04-21 Thread Thomas Allen
routes.generate url end else routes.generate :controller => text end unless text.is_a? String text = t text end active = request.request_uri == url "#{ link_to text, url }" end end Thomas -- You received

[Rails] Re: Accessing the router from a helper

2010-04-21 Thread Thomas Allen
On Apr 21, 4:37 pm, Michael Pavling wrote: > On 21 April 2010 20:36, Thomas Allen wrote: > > >active = request.request_uri == url > > Would using url_for() not save you a lot of hassle generating that url? Thanks Michael, url_for was what I was looking for in place of man

[Rails] Re: Accessing the router from a helper

2010-04-21 Thread Thomas Allen
else url = url_for :controller => text end end unless text.is_a? String text = t text end active = request.request_uri == url content = link_to text, url if block_given? content << yield end "#{content}" end end T

[Rails] Model controlled by API calls

2010-04-22 Thread Thomas Allen
Hello, I was wondering if anybody knew of a library (acts_as_ or similar) that provides a simple framework for mapping ActiveRecord calls to API calls for model instances that are managed via API calls rather than a database connection. Thomas -- You received this message because you are

Re: [Rails] Model controlled by API calls

2010-04-22 Thread Thomas Allen
It looks like ActiveResource is what I wanted. Thoma Thomas Allen wrote: > Hello, > > I was wondering if anybody knew of a library (acts_as_ or similar) > that provides a simple framework for mapping ActiveRecord calls to API > calls for model instances that are

[Rails] SAML for Ruby on Rails - we have it!

2010-04-24 Thread Thomas Pedersen
b for everyone to download. If anyone wants to get a head start or just hear more, please contact me at thomas [a] onelogin dot com. You can read more about us at: http://www.onelogin.com Cheers, Thomas -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] ActiveResource does not detect errors for my very simple model

2010-04-28 Thread Thomas Allen
need to do in my model for validations to take effect? My models themselves are dead simple: class ApplicationResource < ActiveResource::Base self.site = 'http://localhost/frontend/www/api' end class Menu < ApplicationResource end Thomas -- You received this message because you are

[Rails] Re: ActiveResource does not detect errors for my very simple model

2010-04-28 Thread Thomas Allen
I referred to http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/67d59a432f1d98e3 and tried this with Rails 2.2.2, but got the same result. I am guessing the issue I am experiencing is not version-specific. Thomas On Apr 28, 12:16 pm, Thomas Allen wrote: > The documentat

[Rails] OneLogin releases SAML for Ruby

2010-05-03 Thread Thomas Pedersen
We have just published a neat little toolkit for those of you who are interested in SAML-enabling your enterprise application. SAML is a standards-based single sign-on protocol, which allows an identity provider to securely log users into an application without a password. Some of the advantages of

[Rails] Re: rubygems-update 1.3.0 causing rake task problems?

2008-10-30 Thread Thomas Jachmann
just replace the line with rails_gem = Gem.cache.search(Gem::Dependency.new('rails', "~>#{version}.0")).sort_by { |g| g.version.version }.last Note that the two string parameters to search() are wrapped in a Gem::Dependency object. Strange refactoring, took me quit

[Rails] Re: rubygems-update 1.3.0 causing rake task problems?

2008-10-30 Thread Thomas Jachmann
wrapping the strings in the dependency object. Strange deprecation, took me quite some time. HTH, Thomas On 28 Okt., 22:51, lunaclaire <[EMAIL PROTECTED]> wrote: > I'm running into problems with some of my rake tasks and I think it's > since my host updated rubygems to v

[Rails] Rails requires RubyGems >= 1.1.1 : problem

2008-11-07 Thread Thomas Balthazar
1.0, 1.2.6) rake (0.8.3) rubygems-update (1.3.1) Any idea? Thanks in advance for your help. Best, Thomas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this grou

[Rails] Re: Rails requires RubyGems >= 1.1.1 : problem

2008-11-09 Thread Thomas Balthazar
Hello Rick, Thanks for your help. I already have this line in my environment.conf "RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION". But I still get the same "Rails requires RubyGems >= 1.1.1 (you have 1.0.1). Please `gem update --system` and try again.&q

[Rails] Re: Rails requires RubyGems >= 1.1.1 : problem

2008-11-09 Thread Thomas Balthazar
Hello Freddy, Thanks for your guess, but I compiled ruby manually, following Dan Benjamin's instructions found here : http://danbenjamin.com/articles/2008/02/ruby-rails-leopard Thomas. On Sat, Nov 8, 2008 at 11:18 PM, Freddy Andersen <[EMAIL PROTECTED]>wrote: > > Just a wild g

[Rails] Re: Rails requires RubyGems >= 1.1.1 : problem

2008-11-10 Thread Thomas Balthazar
Hello Rick, My app wasn't frozen. I froze it to 2.1.2 and script/server start now works. Thanks for your help. Still, I don't understand why it didn't worked without the freeze. Best, Thomas. On Sun, Nov 9, 2008 at 6:06 PM, Rick <[EMAIL PROTECTED]> wrote: > > ok,

[Rails] Re: scaffold not working like i hoped......

2008-11-10 Thread Mark Thomas
Try Ryan Bates' nifty_generators gem. I haven't tried it yet (on my todo list) but supposedly it can generate controller and views by looking at the attributes of an existing model. See http://github.com/ryanb/nifty-generators/tree/master/rails_generators/nifty_scaffold/USAGE -- Mark. --~--~---

[Rails] Re: is there a "validates_empty" method or a way to do this in a single line?

2008-11-10 Thread Mark Thomas
Hmm... maybe validates_length_of with max set to 0 (and a custom message) Otherwise you may have to write your own validator using a callback like before_create or before_validation_on_create. -- Mark. --~--~-~--~~~---~--~~ You received this message because you ar

[Rails] Re: Rails requires RubyGems >= 1.1.1 : problem

2008-11-12 Thread Thomas Balthazar
Hello, Did you try to run 'gem update --system'? Which OS are you running? Best, Thomas. On Tue, Nov 11, 2008 at 1:41 AM, 元明 進藤 <[EMAIL PROTECTED]>wrote: > > Excuse me. I'm caught in a similar problem. > thank you for the hints so far. > > But symptom a

[Rails] Re: help with JQuery

2008-11-12 Thread Mark Thomas
On Nov 12, 10:48 am, "César" <[EMAIL PROTECTED]> wrote: > Hi, >    have somebody experience using JQuery in an application Ror join to > prototype? >    somebody knows if is possible use Prototype and JQuery all together? > >    I am trying implement drag and drop effects in a table but nothing

[Rails] Re: error installing rcov gem on ubuntu 7.1

2008-11-13 Thread Mark Thomas
I think the recommended way is to do the following sudo apt-get install build-essential Then install gems the normal way. Otherwise you will be dependent on ubuntu repositories for all your gems with native extensions, and you may be stuck a few versions behind (or completely without -- is Nokog

[Rails] Re: undefined method `to_query'

2008-11-18 Thread Mark Thomas
> >> Object.new.methods.include?('to_query') > => false > >> exit You won't see it from IRB, because Rails extends Object with the methods. Try it from within 'script/console" -- it works for me in Rails 2.0.2 (not sure about 1.2.3--that's fairly outdated). -- Mark. --~--~-~--~~-

[Rails] Re: web service

2008-11-24 Thread Mark Thomas
On Nov 24, 7:59 am, Subhadip Chakraborty <[EMAIL PROTECTED] s.net> wrote: >  Hi, >  i am creating a server side web service in ruby on rails. >  but when i am installing gem actionwebservice, its gives an error >  actionwebservice requires actionpack(=1.13.6,runtime). >  how this problem will be

[Rails] Re: Actionwebservice as a SOAP client to .NET services.

2008-11-24 Thread Mark Thomas
On Nov 23, 9:50 pm, "Tim Uckun" <[EMAIL PROTECTED]> wrote: > I have read the (scant) documentation on the datanoise > actionwebservice gems and can't figure out how you are supposed to > structure the SOAP client. You probably want SOAP4R. See http://rubyforge.org/projects/soap4r/ and also my tut

[Rails] Re: Importing / Parsing Large Excel Files ?

2008-12-10 Thread Thomas Preymesser
ge spreadsheet files without problems but it may be very slow. You can try if it is fast enough for your purposes. -Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] Re: Finding Child Records Efficiently

2008-12-30 Thread Mark Thomas
In a tree-based model, you have some tradeoffs if you want to retrieve multiple values efficiently. Usually this is an insert-time vs query- time tradeoff. For example, if you wanted to keep track of the number of descendants of any particular node, you would either have to traverse the node's sub

[Rails] Re: YUI widgets, and JSON datasource generated by rails.

2008-12-30 Thread Mark Thomas
> I wonder if someone has tried to populate a > YUI Datasource > with JSON generated by a rails controller? (So to dynamicly updating a > table, with a model > represented in JSON format). > > Thanks, Christophe Perhaps YUI4Rails does this? http://github.com/mghaught/yui4rails/tree/master#README

[Rails] Re: Finding Child Records Efficiently

2008-12-30 Thread Mark Thomas
I forgot you wanted actual names instead of IDs, but the same principle applies. You can serialize strings in the same fashion. Also, in my previous post I said 'descendants', when really 'ancestors' is more appropriate. -- Mark. --~--~-~--~~~---~--~~ You received

[Rails] Re: Model without database table?

2009-10-06 Thread Thomas Gendulphe
Sorry for the late answer, maybe it will be usefull for someone else. You can use the following plugin: http://agilewebdevelopment.com/plugins/activerecord_base_without_table -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this messa

[Rails] Re: Call an helper method from a controller

2009-10-14 Thread Thomas Gendulphe
You can also directly instanciate a Helper object and call a method. example with number_to_currency: Object.new.extend(ActionView::Helpers::NumberHelper).number_to_currency(number, options) but beware that is there are methods of other Helpers methods, they will fail. -- Posted via http://

[Rails] Re: image_path without timestamp

2009-10-22 Thread Thomas Gendulphe
Hi, To disable asset_id completely, simply set the environment variable (for instance in environment.rb): ENV['RAILS_ASSET_ID'] = "" cheers Philip Hallstrom wrote: >> .swf file in public/images/flash >> fine. >> >> In production, the app will be deployed in a subdirectory, so the path >> wil

[Rails] Re: Validations should work, but aren't?

2009-11-09 Thread Mark Thomas
On Nov 9, 9:08 pm, Chris To wrote: > Hi, > > I've added a couple of validations to my model, however whenever I > submit with no information (to purposely fail) in the view form, I just > get a generic rails error message (the kind with all the stack trace > information). There's nothing gener

[Rails] Schema dump does not reflect column size limit

2009-11-11 Thread Thomas Gendulphe
Hi, Everything is in the title. With Rails 2.3.4 and MySQL 5.0.41: If have a table like this: +++--+-+-++ | Field | Type | Null | Key | Default | Extra | +++--+-

[Rails] Re: Schema dump does not reflect column size limit

2009-11-12 Thread Thomas Gendulphe
Rob Biedenharn wrote: > On Nov 11, 2009, at 4:55 AM, Thomas Gendulphe wrote: > >> | Field | Type | Null | Key | Default | >> || >> | user_id| int(11)| YES | MUL | NULL >>t.datetime "created_at" &

[Rails] e-mail verification with rails 3

2011-04-12 Thread Thomas Tomtom
Hello everyone Has anyone a suggestion about how to implement an email verification system with rails 3 ? By this I mean, a user subscribes (sign up) receives an email with a link and has to follow that link to change the status of the user, only after that the user can login. What's the best RE

[Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-02 Thread Thomas M.
did you ever press option-minus or option+plus for change the sizes in firefox? because firefox remembers this... just a guess -- 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 gr

[Rails] [JOB] Senior Rails developper -> Join a Swiss startup!

2009-05-03 Thread Thomas Gendulphe
Hi, BETCoffee is a young startup based in Lausanne, the french speaking part of Switzerland. We are currently looking for a senior Rails developer to join the team. The position is on a permanent basis and 100% in Lausanne. Fluent english or french (better) is mandatory. More information in the

[Rails] Re: Strange error when running rails 2.3 on ruby 1.9.1 on FreeBSD

2009-05-13 Thread Thomas Webb
If you really want to learn the latest features as a beginner (might not be a good idea just because the complications might leave a bad taste in your mouth when running with rails is generally a smooth process), then I'd suggest doing what I had to do - track edge. The problem you're having w

[Rails] Rails + Cappuccino : a screencast

2009-05-19 Thread Thomas Balthazar
Hey, I've released 2 screencasts about Rails + Cappuccino (http://cappuccino.org) : http://bit.ly/CappuccinoRails1 http://bit.ly/CappuccinoRails2 They show how to create a Cappuccino interface for the Rails Weblog Application (by Ryan Bates). I though I might share it here too. Best, T

[Rails] Re: Define id in xml

2009-01-06 Thread Mark Thomas
On Jan 6, 5:53 am, Brijesh Shah wrote: > Hi > > I like to generate xml like > > >     >           abc >     >     >           abc >     > > > Here I want to display id in each user tag. So How can I do that? require 'builder' builder = Builder::XmlMarkup.new(:indent => 2) xml = builder.use

[Rails] Setup a Rails machine with Capistrano and Ubuntu

2009-01-08 Thread Thomas Balthazar
slice, and on an OVH RPS. You can watch the screencast here : http://suitmymind.github.com/ubuntu-machine/#screencast I'll be glad to hear your feedback mailing-list : http://groups.google.com/group/ubuntu-machine Cheers, Thomas Balt

[Rails] Re: Ongoing errors with libxml & mysql

2009-01-12 Thread Mark Thomas
On Jan 9, 3:48 pm, MikeyB wrote: > Any ideas here? Thanks in advance for any help; I'm a beginner :) How did you install libxml2? Try installing from source, and see if you get any errors. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] validates_inclusion_of using model association?

2009-02-18 Thread Thomas Watson
Hi I have three models: class Product < ActiveRecord::Base has_many :coupons has_many :orders end class Coupon < ActiveRecord::Base belongs_to :product end class Order < ActiveRecord::Base belongs_to :product end When creating an order, a coupon can be supplied to make use of a discou

[Rails] Re: validates_inclusion_of using model association?

2009-02-18 Thread Thomas Watson
I get the same error message: "An object with the method include? is required must be supplied as the :in option of the configuration hash" On Feb 18, 4:33 pm, jemminger wrote: > try > > validates_inclusion_of :coupon, :in => lambda { |prod| prod.coupons.map > (&:code) } --~--~-~--~~

[Rails] cygwin rvm and jruby

2010-12-07 Thread Thomas Grebschrop
jruby/1.8/cache $ ls bouncy-castle-java-1.5.0145.2.gem haml-3.0.24.gem rake-0.8.7.gem bundler-1.0.7.gem jruby-openssl-0.7.2.gem >snip Any ideas? Best regards Thomas -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] Re: LoadError html/sanitizer

2011-01-19 Thread Thomas D.
I'm also having this problem. It has been solved by using bundler 1.0.7 instead of 1.0.8... -- 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

Re: [Rails] Need some information

2011-10-27 Thread Thomas Yao
On Thu, Oct 27, 2011 at 4:55 PM, cval eval wrote: > Hello there. > > A friend of mine asked me to finish RoR project. Project is almost > finished, but there are plenty of bugs to be fixed. > I don't have Ruby and RoR experience, but I have degree in software > engineering and some C\C++\Python(no

[Rails] routes for devise in rails4

2013-07-09 Thread Thomas Chik
How about an authorization solution like cancan. Have a single sign in point and redirects based on user rights. -- 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 em

[Rails] ?include binstubs in version control

2013-07-13 Thread Thomas Chik
I am using rbenv. Just a quick question: Is it good practice to include binstubs in version control? I have looked at the binstubs created; they look pretty harmless. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from t

[Rails] Re: ?include binstubs in version control

2013-07-13 Thread Thomas Chik
Thanks! -- 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 group, send email to rubyonrails-ta

[Rails] Re: ?include binstubs in version control

2013-07-13 Thread Thomas Chik
Thanks! -- 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 group, send email to rubyonrails-ta

[Rails] Re: ?include binstubs in version control

2013-07-13 Thread Thomas Chik
Thanks! -- 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 group, send email to rubyonrails-ta

[Rails] Form objects vs nested attributes in 1 to many association

2013-07-14 Thread Thomas Chik
Recently I have been reading about form objects and have been wondering its use in 1 to many assocation. Let's say I have a model of project with many tasks and the user edits the project along with the tasks in one big form. Is nested attributes using cocoon gem better suited than using refor

[Rails] Remote form in popover processing as html

2013-08-09 Thread Thomas Dragsbæk
Im trying to submit a rails remote form in a bootstrap popover, but it keeps processing as html. There are no js errors, controller responds to js and i have a create.js.erb. Can someone please point me to the problem? Below is the content of my popover. Users have to options when submitting a

Re: [Rails] Remote form in popover processing as html

2013-08-09 Thread Thomas Dragsbæk
Niiice! that did it, thanks! -- 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 group, sen

Re: [Rails] Remote form in popover processing as html

2013-08-25 Thread Thomas Dragsbæk
you're right, thanks -- 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 group, send email to r

[Rails] Ruby on Rails developer for top company in Munich / Germany. Visa Sponsoring!

2013-09-11 Thread Thomas Lersch
Ruby on Rails developer for top company in Munich / Germany. Non EU applicants very welcome, we sponsor Visa! Senior Ruby on Rails Developer is required by one of the most successful start ups of the last five years. This is a senior addition to the team and you will be responsible for developing

[Rails] Lead Rails Developer – Berlin - Visasponsoring

2013-11-13 Thread Thomas Lersch
Lead Rails Developer – Berlin - Visasponsoring About the Job Our client is seeking a developer to lead on maintaining and improving of our platform for connecting charities and game developers. Reporting to the CTO the lead developer will be responsible for the continued development of the platf

Re: [Rails] Getting OptionParser::InvalidOption error while installing rails

2013-12-04 Thread Thomas Murphy
On Wed, Dec 4, 2013 at 1:10 PM, Muralitharan A. wrote: > Hi, > > Topic : Ruby On Rails > Issue : Error while installing rails using rubygems. > > Description: > > Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0. > > Getting the below error when trying to install Rails using rubyGems. > >

Re: [Rails] Heroku problem

2014-01-07 Thread Thomas Murphy
This isn't a Rails problem. It's a very straightforward Heroku error. Go to Heroku and delete some of your sample apps, or pay for an account. On Tue, Jan 7, 2014 at 10:46 AM, pramod gupta wrote: > While deploying a new app on heroku i got this error > > !You've reached the limit of 5 apps

[Rails] Copy-on-Write not working after fork when running GC in latest Ruby version

2015-04-27 Thread Thomas Kalmus
Hello everyone, I have a huge problem with memory in Ruby 2.2.1. Namely, after forking a process, it seems that the copy-on-write functionality is not working at all and I end up with double the memory I started with. The problem is described in details under this link : https://bugs.ruby-lang

[Rails] Re: Copy-on-Write not working after fork when running GC in latest Ruby version

2015-04-30 Thread Thomas Kalmus
Small update. I have played with the GC and have run several tests. I manage to solve the problem by disabling the GC with GC.disable, but then my memory gets filled with garbages. I have also disabled hugepages on linux and no effects. Finally I've played with some of the parameters of the GC

[Rails] Just Another ActiveRecord::ConnectionNotEstablished Question

2015-12-04 Thread Ben Thomas
I am trying to follow RESTful Rails Development from O'Reilly by Silvia Puglisi. I have created an app (wikicat), database (MySQL), models (category and link), controllers (CategoryController show) and routes. I have followed everything that the book said (taking in to consideration the published

[Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!' called for #

2010-07-21 Thread Sony Thomas
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!' called for # C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/li

Re: [Rails] Is Java Dead?

2010-10-08 Thread Brett Thomas
I think IDEs are important too, and will always be better in a static typed language like java. I haven't seen a ruby (or python) IDE that comes close to the java IDEs. Look at Google Web Toolkit. I hate java, but I still use GWT for ajax apps instead of rails. (And by the way, it has an awesome di

[Rails] Re: not able to start my first RoR project

2010-10-08 Thread Mark Thomas
On Oct 8, 6:08 am, Premanshu Mishra wrote: > I m running Java VM on my system. Is there any luck with WIndows that i > can expect of.??? Yes, in fact JRuby is a good option on Windows. Download the latest version of NetBeans, which comes with JRuby, and you should be able to get a Rails app

Re: [Rails] Re: 90% of documentation outdated?

2010-10-08 Thread Brett Thomas
I just set up authlogic with rails 3 last week, this forum was super helpful http://www.ruby-forum.com/topic/204464 I followed this post http://www.ruby-forum.com/topic/204464#916795 and it Just Worked On Fri, Oct 8, 2010 at 10:15 AM, Robert Walker wrote: > aperture science wrote: > > I have be

[Rails] ActionMailer multipart messages with attachment rails3

2010-10-14 Thread Thomas Grebschrop
p/verwertung.csv') >snip The mail looks fine, e.g. the inline attachment is included, but the attached file is empty! What is the problem here? Best regards, Thomas -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "

[Rails] Re: ActionMailer multipart messages with attachment rails3

2010-10-15 Thread Thomas Grebschrop
Thomas Grebschrop wrote in post #950122: > Hi, > > I try to send a multipart message with actionmailer under rails3. > When the mail client receives the mail the attachment is empty. > I do definitely attach a non-empty file. > Here is the code: > >>snip > recipients

Re: [Rails] How to create a "like" button

2010-10-18 Thread Brett Thomas
AJAX - set the onClick property to point to a function that sends the request to the server. On Mon, Oct 18, 2010 at 7:25 AM, Christian Fazzini < christian.fazz...@gmail.com> wrote: > Ive got a like and video model. > > On a Video page, Users can click a link ("like") button which will > allow th

[Rails] Re: REXML::ParseException - but the feed IS valid

2011-05-17 Thread Thomas Dalla
I still have the same problem with Ruby 1.9.2... === I 05/17/2011 21:56:20:387 1638 APP| Error: #SDM Information Session will be held as follows.Date: May> === The Atom Feed is valid: http://www.sdm.keio.ac.jp/en/atom.x

[Rails] Re: Arel quiz: complex queries with associations

2011-07-25 Thread Thomas D.
Hi Sarah, I think you can find a lot of information here : http://rdoc.info/github/rails/arel/master/Arel/Table What you are using here is ActiveRecord, ActiveRecord is using Arel itself to generate it's queries. You can use Arel directly this way : scope :with_or, lambda { b = Person.arel_tabl

[Rails] How to indent .html.erb files in sublime text 2?

2012-02-15 Thread Thomas Yao
Hi all, I'm now using Sublime Text 2 and it's pretty awesome The only problem is that it has no indent support for .html.erb file type, any one here using this editor can tell me how to solve this problem? Thank you -- Keep It Simple Stupid Twitter: @ghosTM55 -- You received this message becau

[Rails] Rspec - want to NOT clear database between tests

2012-06-29 Thread Carilda Thomas
Rails 3.2.1 Ruby 1.9.3p125 Rspec 2.8.0 I have a utility written in ruby that executes within a Rails environment. It creates database records in one table based on the info in other tables. A date and a name determine uniqueness of these created records. To test this, I have to run the utility giv

[Rails] Re: Rspec - want to NOT clear database between tests

2012-07-01 Thread Carilda Thomas
Martin Streicher wrote in post #1066742: > before(:all) seems well-suited to this problem. It creates data that > persists across transactions. > > https://www.relishapp.com/rspec/rspec-rails/docs/transactions Thank you but (after much googling) I discovered that one cannot load fixtures in befor

  1   2   >