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] Re: Secrets decryption error appeared (ActiveSupport::MessageEncryptor::InvalidMessage)

2018-04-13 Thread thomas
set 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, April

[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] 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

[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] 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] 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 :

[Rails] Inline attachments appear as downloadables

2015-01-16 Thread Thomas Michael
Hello, I'm attempting to generate emails with inline attachments. I'm using Action Mailer 4.1.6 and the attachment.inline method, but for some reason all of my attachments are coming through as regular downloadable attachments, not as inline attachments. Here's the relevant code: In

[Rails] Re: Senior Ruby on Rails Developer – Berlin – Visasponsoring

2014-12-01 Thread Thomas Lersch
Our client specializes in solving complex technical problems in the film and TV broadcasting industries by creating value through the manual automatic curation of hidden content in archives, studios and broadcasting businesses generating new revenue streams for our customers. This is a

[Rails] Senior Ruby on Rails Developer – Zurich, Switzerland – Visasponsorship

2014-12-01 Thread Thomas Lersch
Our client is seeking for candidates for a Senior Ruby on Rails Developer position. Primary Skills: ROR, HTML5, CSS3, and JavaScript, GitHub Description: • Senior 8 to 12 years experienced developer who can do hands-on coding • Should have experience building / designing / developing products •

[Rails] Senior Ruby on Rails Developer - Berlin - Visasponsoring

2014-10-12 Thread Thomas Lersch
A worldwide brand and fast-growing media and entertainment company have big expansion plans for there development team to bring in several Senior Ruby on Rails Developers. They are looking for developers to be responsible for providing technical solutions, designs and implementations for new and

[Rails] Ruby on Rails Developer for Tech Start Up in Basel - Switzerland wanted. Visa sponsorship - only EU

2014-09-26 Thread Thomas Lersch
Our client, a top swiss tech start-up based in Basel are now looking for a Ruby on Rails Developer with 4+ years experience to join their expanding team. Responsibilities: • Develop new features using a BDD approach. • Code Review • Writing code whilst collaborating with the product owner and

[Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Thomas O'Boyle
Hi All, I just started the UT on Rails class through reddit and am completely new to programing. I apologize for not being able to articulate my problem clearly. I am watching this video https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the instructor restarts something

Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Thomas O'Boyle
schrieb Thomas O'Boyle thomas...@gmail.com javascript:: Hi All, I just started the UT on Rails class through reddit and am completely new to programing. I apologize for not being able to articulate my problem clearly. I am watching this video https://www.youtube.com/watch?v=EU98yHB-_7A

Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Thomas O'Boyle
issues every time. Thanks again for replying! On Sunday, August 31, 2014 10:00:16 AM UTC-7, Colin Law wrote: On 31 August 2014 17:29, Thomas O'Boyle thomas...@gmail.com javascript: wrote: Hi Nobert, Thanks for responding to my question. I have completely followed his steps

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 pramod77...@gmail.com wrote: While deploying a new app on heroku i got this error !You've reached

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. li...@ruby-forum.comwrote: 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

[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

[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

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

[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, send

[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

[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

[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

[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

[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

[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

[Rails] Re: Troubles with bcrypt-ruby

2012-09-14 Thread Thomas B.
Everything looks fine with your model/controller. The problem is probably coming from your view. Could you please include the full snippet form in the view please? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Devise sign up with paypal

2012-09-14 Thread Thomas B.
https://github.com/dwilkie/devise_paypal -- 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] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-01 Thread Thomas Chen
It looks like you have a pretty classic has_many through kind of relationship. I don't know the details of your model, but I'd assume you have the following 3 models: User: id TaskRelationship user_id task_id Task id What you want to do, then is to put in your user model the following

[Rails] Ruby on rails Developer-Golden CO

2012-09-01 Thread pradeep thomas
Hi We are looking for a strong Ruby on Rails developer in Golden, CO. Post your resumes to *pradeept at hrgiants.com* or call me at *510 870 2315. PDT* Description: Join our agile team of Ruby on Rails developers building wireless home automation services in Golden, Colorado. We're developing

[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

[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

[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

Re: [Rails] Need some information

2011-10-27 Thread Thomas Yao
On Thu, Oct 27, 2011 at 4:55 PM, cval eval li...@ruby-forum.com 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

[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

[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 =

[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: #REXML::ParseException: Declarations can only occur in the doctype declaration. Line: 39 Position: 2342 Last 80 unconsumed characters: ![CDATA[pSDM

[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

[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

[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

[Rails] cygwin rvm and jruby

2010-12-07 Thread Thomas Grebschrop
/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 Google Groups Ruby

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 them to

[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 [sec...@secret.com] from sec

[Rails] ActionMailer multipart messages with attachment rails3

2010-10-14 Thread Thomas Grebschrop
) end attachment :content_type = text/csv, :filename = verwertung.csv, :body = File.read('/tmp/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

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

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

2010-10-08 Thread Mark Thomas
On Oct 8, 6:08 am, Premanshu Mishra li...@ruby-forum.com 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

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 li...@ruby-forum.com wrote: aperture science

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

2010-07-21 Thread Sony Thomas
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!' called for #Class:0x47a8e38 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'

[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

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

2010-04-28 Thread Thomas Allen
such a response as valid? Is there something more I 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

[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 thomasmal...@gmail.com wrote

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

2010-04-24 Thread Thomas Pedersen
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 on Rails

[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

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 managed via API calls

[Rails] Re: A way to build title

2010-04-21 Thread Thomas Allen
' | ' end end class DashboardController ApplicationController title :dashboard def index title :home end end title%= title %/title Thomas On Apr 21, 3:38 am, Alexandre Friquet a...@infopiiaf.fr wrote: Hi Thomas, How might I clean this up? My ideal would be for each controller

[Rails] Flattening 1:1 models

2010-04-21 Thread Thomas Allen
| 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 message

[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 li #{'class=active' if active}#{ link_to text, url }/li end end Thomas

[Rails] Re: Accessing the router from a helper

2010-04-21 Thread Thomas Allen
On Apr 21, 4:37 pm, Michael Pavling pavl...@gmail.com wrote: On 21 April 2010 20:36, Thomas Allen thomasmal...@gmail.com 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

[Rails] Re: Accessing the router from a helper

2010-04-21 Thread Thomas Allen
end end Thomas On Apr 21, 5:07 pm, Michael Pavling pavl...@gmail.com wrote: On 21 April 2010 22:00, Thomas Allen thomasmal...@gmail.com wrote: On Apr 21, 4:37 pm, Michael Pavling pavl...@gmail.com wrote: On 21 April 2010 20:36, Thomas Allen thomasmal...@gmail.com wrote:    active

[Rails] A way to build title

2010-04-20 Thread Thomas Allen
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 rubyonrails-t...@googlegroups.com. To unsubscribe from

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

2010-04-19 Thread Thomas Allen
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. To unsubscribe from this group

[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 message

[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 ajay.ka...@gmail.com wrote: Thomas, I'm still on Rails 2.1 and would like

[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 kristian.hellqu...@gmail.com wrote: Cant you just do `request.server_port'  in controller? 2009/12/9 Thomas thomas.net...@gmail.com

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

2009-12-09 Thread Thomas
of the request. Thanks, this solves my problem, Thomas On 9 Dez., 14:06, Kristian Hellquist kristian.hellqu...@gmail.com wrote: Does request.env.inspect gives you any hint? 2009/12/9 Thomas thomas.net...@gmail.com: Hi Kristian, this also results in port number '3000', and not in the port

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

2009-12-08 Thread Thomas
the 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, send email

[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 t.boolean confirmed t.text admin_comment

[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: Validations should work, but aren't?

2009-11-09 Thread Mark Thomas
On Nov 9, 9:08 pm, Chris To rails-mailing-l...@andreas-s.net 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

[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 will be

[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

[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

[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 group. To post

[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 rails-mailing-l...@andreas-s.net 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 have test database created ? -- Posted

[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 thomasmal...@gmail.com wrote

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

2009-08-27 Thread Thomas Allen
) ** 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 --~--~-~--~~~---~--~~ You received this message because you

[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 phlip2...@gmail.com 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.

[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

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

2009-08-11 Thread Mark Thomas
11, 2:50 am, Mark Thomas thomasm...@gmail.com wrote: Hello - ActionView::TemplateError (undefined local variable or method `f' for #ActionView::Base:0xb6e7b2f4) on line #1 of app/views/listings/ _automodels.html.erb: %= f.collection_select :model, @automodels, :model, :model, {:prompt

[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:

[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

[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 thomasmal...@gmail.com 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

[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 frederick.che...@gmail.com wrote: On Jul 22, 1:51 pm, Thomas Allen thomasmal...@gmail.com wrote: Is what I'm attempting possible with render :partial

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

2009-07-20 Thread Thomas Allen
' 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 new view refreshed rather than being moved to the edit screen. Is what I'm attempting possible with render :partial? Thomas

[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, Thomas

[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

[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

[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 jemmin...@gmail.com wrote: try validates_inclusion_of :coupon, :in = lambda { |prod| prod.coupons.map (:code) }

[Rails] Re: Activate a gem..

2009-02-04 Thread Thomas R. Koll
Hi, Try this in your config/environment.rb config.gem actionmailer, :version = '2.0.2' If you wanna use 2.0.2 for the whole app then it's RAILS_GEM_VERSION = '2.0.2' ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32

[Rails] Re: simple_autocomplete and find: same inputs but diff order

2009-02-03 Thread Thomas R. Koll
= find_options.delete(:find_method) if options[:find_method] ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Rubyforge downloads gone?

2009-02-02 Thread Thomas R. Koll
-- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Query help

2009-02-02 Thread Thomas R. Koll
= #{company_id} unless company_id.nil? pls explain. thank you -- Posted viahttp://www.ruby-forum.com/. -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~-~--~~~---~--~~ You received this message

[Rails] Re: simple_autocomplete and find: same inputs but diff order

2009-02-02 Thread Thomas R. Koll
pop up first. -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: how to use the fixed part for the method url_for?

2009-02-01 Thread Thomas R. Koll
article_path(@article) For all routes that map.resources creates do a 'rake routes' on the console. ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~-~--~~~---~--~~ You received this message

[Rails] Re: form.radio_button values

2009-02-01 Thread Thomas R. Koll
button is only a button, nothing else. What you need is a label right next to the button: f.radio_button(part_of_speech, :noun f.label(part_of_speech, t('noun')) ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32

[Rails] Re: Problem with params[]

2009-02-01 Thread Thomas R. Koll
Hi Rick, Do you have validations in you models? I mean like validates_presence_of :forum_id Besides that, I'd do a @topic.posts.new instead of Post.new And third, please do a @forum = Forum.find(params[:forum_id]) And fourth, maybe its params[:topic][:forum_id] ?? ciao, tom On Feb 1, 4:25 

[Rails] Re: Using session variables vs passing parameters via URL

2009-02-01 Thread Thomas R. Koll
wrote: Would it make more sense to store @prefix, @category, @page, and whatever else I think I might want to pass around in the session?  Or should I keep going down this route? -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change the world http://github.com/TomK32

[Rails] Re: Hash names with white spaces

2009-01-31 Thread Thomas R. Koll
Hi Stefano, First of all, migrate your database. Legacy dbs suck and there's no reasons why to preserve them for too long. About your problem: Both params['first name'] and params[:'first name'] will work. ciao, tom -- Thomas R. TomK32 Koll http://ananasblau.com just a geek trying to change

  1   2   >