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

2019-12-03 Thread Adam Lassek
It might be *possible* but I would strongly suggest rethinking this. What is going wrong with your DB that its built-in caching is insufficient? Have you exhausted your performance-tuning options in the DB layer? Have you measured a significant performance problem in the first place? Do you

[Rails] Re: Feature idea: make it easy to extend schema.rb without monkeypatching

2019-12-02 Thread Adam Lassek
I recently did kind of an insane thing and wrote a gem that monkeypatches Rails to support PostgreSQL enums: https://github.com/alassek/activerecord-pg_enum It's similar to schema_plus_enums but substantially more comprehensive. One of the things I did was support dumping enum definitions to

Re: [Rails] command line erb?

2019-02-21 Thread Adam L
This solved my problem. Thanks! On Sunday, February 25, 2018 at 12:46:08 PM UTC-5, Robert Phillips wrote: > > > > On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote: >> >> On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips >> wrote: >> >> > Is there a command line ERB? >> >> I

[Rails] Re: Implementing mupdf for ActiveStorage on Heroku

2018-01-17 Thread Adam Stockland
days ago. Boooya. updating bullet to 5.7.1 fixed this On Wednesday, January 17, 2018 at 11:53:25 AM UTC-8, Adam Stockland wrote: > > I've upgraded to rails 5.2 and am implementing ActiveStorage. > ActiveStorage uses mutool for PDF processing. I have successfully > installed mu

[Rails] Implementing mupdf for ActiveStorage on Heroku

2018-01-17 Thread Adam Stockland
I've upgraded to rails 5.2 and am implementing ActiveStorage. ActiveStorage uses mutool for PDF processing. I have successfully installed mutool locally using homebrew. mutool is a bit confusing. rails docs claim to require "mutool", homebrew installs "mupdf-tools",

[Rails] View that allows HTML

2017-03-17 Thread Adam
. As it is now, the html tags are escaped. Is there a simple way to allow unescaped HTML into a view so that I can create a formatted post? Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from

[Rails] ANY GREAT APP DEVELOPERS OUT THERE WHO WANT TO BE A CO FOUNDER OF A GREAT NEW SOLOMO APP

2015-11-12 Thread Adam D
Hi All. I have designed a Social Local Mobile App I built the Prototype on Proto.io I am looking for Someone who is a talented App developer who can build this as a quality App and has a track record in doing this I also need someone who has the time now to dedicate to this project and finally

[Rails] User-facing string interpolation in Rails

2015-07-06 Thread Adam Cooke
A couple of months ago I made a gem to help with string interpolation in Rails. If you ever find yourself needing to allow users to insert variables into strings which they provide, this gem may be quite useful to you. You basically define a list of variables which can be inserted on a model

[Rails] Looking for some job 7 years experience

2014-11-30 Thread adam . jablonka
Hello, We are experts in the field of outsourcing and we all know how to run projects remotely. The team of developers encodes ripped from our office in Poznan established customers, most of which come from Scandinavia. The secret of smooth cooperation is based on well-defined project

[Rails] Ruby on Rails (ROR) Development Services

2014-10-16 Thread Adam Gilchrist
Panzer Technologies is well prepared to provide the best staffing solutions and when it comes to ruby on rails development, it stands out as a distinguished company, with required expertise in ROR. To get more information please visit our website @ http://www.panzertechnologies.com/IT/ror.php

[Rails] When I start a rails server and try a test app, changes to controller files arent reflected

2014-08-08 Thread Adam
Hi, Just starting out with Rails so bear with me. I was working on a test app and everything was going great. However now when I run rails server and none of the changes to the controller files are reflected. If I make changes to HTML files, those are reflected. And yes, I'm sure im in the

[Rails] JOBS - New perm Ruby role within Philly! Awesome growing company culture, even better people!

2014-07-18 Thread Adam M - IT Recruiter
Hi Ruby users. We are working directly with this hiring manager in Philadelphia PA for a permanent opportunity to join his team of passionate developers who are all about open source technologies. This is an RD minded work environment where the manager is only looking for people who love to

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

2014-01-22 Thread Adam Gilchrist
Hi all, I looking for best company on Ruby on Rails Development in India. Have any good companies in India please let me know. -- 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

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

2014-01-22 Thread Adam Gilchrist
Hi all, I looking for best company on Ruby on Rails Development in India. Have any good companies in India please let me know. -- 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

[Rails] 2013 Rails Rumble Gem Teardown

2013-10-31 Thread Adam Doppelt
Hi guys. I just finished writing up my analysis of the gems used in the 2013 Rails Rumble: http://www.dwellable.com/blog/Rails-Rumble-Gem-Teardown The Rails Rumble organizers were kind enough to let me look at the Gemfiles submitted by 221 teams. I spent a couple of days digging into the data.

[Rails] Is it possible to execute a ruby script in the asset pipeline?

2013-02-26 Thread Adam Wong
I'm working on an idea and I was wondering if it was even possible... We are frequentlly tweaking images as the style of our website changes. Usually we need to slightly alter the color of a layer in the image so that it matches our css. This means editing an image in photoshop, making the

[Rails] [ANN] Ruby Manor 4, London UK, 6th April 2013

2013-01-22 Thread James Adam
There's a good chance you've already seen this, but just in case not... Tickets for Ruby Manor 4 are now available, happening on the 6th of April 2013 in London, UK. Full details and ticket info: http://rubymanor.org/4/ We'd love to see you there. All the best, - James -- You received this

[Rails] Hacking journey::routes and simple-navigation

2013-01-09 Thread Adam Wong
I really love the simple-navigation gem but there are some problems. My configuration file is structurally identical to my routes file. That redundancy is bad enough *but* if I navigate to a url that simple-navigation can't catch, it fails completely. So I'm attempting to auto-generate my

[Rails] Re: installing ruby 1.9.3 in michael hartl's ruby on rails tutorial

2012-12-29 Thread Adam Zerner
The problem is solved! see http://stackoverflow.com/questions/14029119/installing-ruby-1-9-3-in-michael-hartls-ruby-on-rails-tutorial/14085987#14085987 On Friday, December 28, 2012 1:30:05 PM UTC-5, Adam Zerner wrote: I'm working on Michael Hartl's ruby on rails tutorial http

[Rails] installing ruby 1.9.3 in michael hartl's ruby on rails tutorial

2012-12-28 Thread Adam Zerner
/openssl.certs.log And this is what happens when I try what it says... Adam-Zerners-MacBook-Pro:~ adamzerner$ rvm reinstall all --force Adam-Zerners-MacBook-Pro:~ adamzerner$ some other information... I don't see a .rvm folder under adamzerner, so I can't read what it tells me to (not that I would

[Rails] Re: bundle install fatal error

2012-12-09 Thread Adam A.
Nice to see I'm not alone in the world of R0R on Cygwin :-) I got it working with latest Ruby release. Everything on my end works just fine. Here's what worked for me: Make sure the ruby that you have installed /with/ cygwin (during the setup.exe) is not interferring with the ruby installed in

[Rails] bundle install fatal error

2012-11-29 Thread Adam A.
Greetings all, After being a c# programmer I wanted to get my feet wet in RoR. Good stuff. I'm running a cygwin (linux emmulator - sort of on Window 7). I have ruby installed: $ ruby -v ruby 1.9.3p327 (2012-11-10 revision 37606) [i386-cygwin] I have rails installed: $ rails -v Rails 3.2.9

[Rails] Re: Debugging errors in asset pipeline-compressed JS

2012-04-09 Thread Adam
Compressing a file should not be contributing to errors - it's likely your production environment settings may have altered the environment enough to produce these errors. Could you describe the problem in a bit more detail so we can better guide you? On Apr 9, 8:03 am, Marko Anastasov

[Rails] Re: Ideas on a project or gem to develop

2012-04-09 Thread Adam
Could you explain this HelpDesk gem a bit more? On Apr 5, 2:02 pm, Lupu Alexandru Emil gang.al...@gmail.com wrote: Hello! What i  do need would be a nice HelpDesk gem. I haven't seen one that i could just install it ... and work ... I need it, so, i am gonna start coding... If there are

[Rails] Work in Progress Guides

2012-03-22 Thread Adam Hawkins
I've started to actively contribute to the guides. One thing that's always bothered me is that some of these guides are works in progress and have been WIP since I started doing rails way back in 2006. Here are the guides currently marked as WIP on guides.rubyonrails.org 1. ActionMailer

[Rails] Re: Associations with 2 foreign keys

2012-02-28 Thread adam witt
Cheers Pete, I ended up using your solution. Cheers everyone. -- 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

[Rails] Associations with 2 foreign keys

2012-02-26 Thread adam witt
Hola, Just wondering if rails will allow me to have one model belong to another model via 2 foreign keys in the same table, not just one? So like this... Class Pair belongs_to :individuals, :foreign_key = individual_a belongs_to :individuals, :foreign_key = individual_b end Class

[Rails] Re: Wierd ID problem controller router?

2012-02-20 Thread Adam
This is the content from TinyMce so the user can visually edit his page content. On 19 Lut, 21:19, Colin Law clan...@googlemail.com wrote: On 19 February 2012 20:08, Adam anlauf.a...@gmail.com wrote: Still top posting I see, much better to put your reply inline as I suggested previously

[Rails] Re: Wierd ID problem controller router?

2012-02-19 Thread Adam
Thanks for the tip I'll check that out On 18 Lut, 14:32, Colin Law clan...@googlemail.com wrote: On 18 February 2012 11:20, Adam anlauf.a...@gmail.com wrote: Hello, recently on one of y sites i have a weird ID problem one editing some pages. After edit I get an The page you were looking

[Rails] Re: Wierd ID problem controller router?

2012-02-19 Thread Adam
I've checked the http request but cannot find anything that could do this. I'm also passing a lot of html could it be the fault? I'm using the 3.0.1 gem of rails. On 18 Lut, 14:32, Colin Law clan...@googlemail.com wrote: On 18 February 2012 11:20, Adam anlauf.a...@gmail.com wrote: Hello

[Rails] Re: Wierd ID problem controller router?

2012-02-19 Thread Adam
...@googlemail.com wrote: On 19 February 2012 18:05, Adam anlauf.a...@gmail.com wrote: Could you not top post please, it makes it difficult to follow the thread.  Insert your reply at appropriate point(s) in previous message.  Thanks. I've checked the http request but cannot find anything that could

[Rails] Re: Wierd ID problem controller router?

2012-02-19 Thread Adam
Sorry for posting so much, but I've tried to remove the html content from the page( html_body param in log) and the error disappeared so I think it has to do something with the html. But still is the question what... On 19 Lut, 21:08, Adam anlauf.a...@gmail.com wrote: It should have been a lot

[Rails] Wierd ID problem controller router?

2012-02-18 Thread Adam
Hello, recently on one of y sites i have a weird ID problem one editing some pages. After edit I get an The page you were looking for doesn't exist. error. The Id of the editing page is 93 but in log files I have ActiveRecord::RecordNotFound (Couldn't find Page with ID=403):

[Rails] Re: Saving different time zone in rails

2011-12-28 Thread Adam Ms.
Always save time in UTC. You can add an additional string field if necessary that contains a string of the time zone it came from. -- 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

[Rails] Re: Need help with WePay integration using oAuth

2011-12-08 Thread Adam M.
Qas Wm wrote in post #1008599: Hi, I a trying to integrate WePay with oauth but I have next to nothing experience with oauth and need help and guidance in completing this task. Does anyone have any pointer or sample they can direct me to? Checkout the wepay-rails gem:

[Rails] Re: Association problem

2011-12-01 Thread Adam
You want to use Nested Associations, which are covered here: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html On Dec 1, 12:28 am, chandrakant jain ckjai...@gmail.com wrote: Hi all I am using four models  user, member, unit, society I have linked member, unit and

[Rails] [ANN] Ru3y Manor - London Conference

2011-09-07 Thread James Adam
Hi all, Apologies if you've already seen this, but you may wish to know that Ruby Manor 3 (Ru3y Manor) has been announced for the end of October 2011[1]. Ruby Manor is a fully-fledged but low-cost and aggressively-open conference for anyone interested in Ruby or Ruby-related topics. Our

[Rails] Best form in pulling the last two records from a dataset in active record

2011-08-28 Thread Adam
in the table, rather than fix this I feel there is probably a better way to retrieve the data. I need to select the blogs in separate calls, for example @blog_post.latestpost, @blog_post.secondlatestpost Thanks, Adam -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: How do I change the name of a label in a form?

2011-08-28 Thread Adam
I always wondered, is there a way you can change the f.label at a model label so regardless of where its used it always has the updated label? is it somewhere in the localization file? or does this just indicate for rails to have a best guess at what it is. I tried defining them in a language file

[Rails] [ANN] Teleport 1.0.1

2011-08-17 Thread Adam Doppelt
I just released the Teleport gem - easy Ubuntu server setup via teleportation. Teleport sets up servers by teleporting to the machine and running itself there. It installs Ruby, then follows the instructions laid out in your Telfile to customize the server. https://github.com/rglabs/teleport The

[Rails] Help with Custom Mail Header

2011-08-10 Thread Adam O'Connor
Hi - I'm stuck on something 'simple' - custom mail header. Seems this should work but can't get it to come out correctly. Any help appreciated: http://pastie.org/private/skedkstanvm8hpzr8ounia -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Problem installing Mysql for use with ROR

2011-06-17 Thread Adam Stegman
/Library/Formula/mysql.rb Note the specific commands: unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir=$(brew --prefix mysql) --datadir=/usr/local/var/mysql --tmpdir=/tmp mysql.server start mysql -uroot Just copy paste them from the instructions. Adam Stegman -- You received

Re: [Rails] How to make a word act as a button?

2011-06-06 Thread Adam Stegman
On Jun 6, 2011, at 2:46 PM, Rodrigo Ruiz wrote: Hi, I'd like to know how can I make a link to a method. I mean, not a link that would normally render a new page, but something that looks like a link (a blue word) but triggers one of my class methods like show a photo at the right side of

Re: [Rails] Re: how instance_eval on Object class creating class methods and not instance methods?

2011-05-17 Thread Adam Stegman
It's not defining it on Class, it's defining it on the Object class. Every class inherits from Object, so every class inherits that class method. If you define it on a different class, it will belong to that class and its descendants: String.instance_eval do def test_method test end

Re: [Rails] How can I avoid this warning?

2011-05-13 Thread Adam Stegman
to be removed from their gemspecs and new versions released. Adam Stegman On May 13, 2011, at 10:12 AM, Mohammed Niyas wrote: NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from

Re: [Rails] Rails 3 Forces HTML Escape of Forms

2011-05-13 Thread Adam Stegman
Are you using helper methods to output the HTML? If so, you can mark them as safe by adding safe_helper :helper_method_name in the helper file. Then I believe they won't be escaped. Adam Stegman On May 12, 2011, at 10:26 PM, dlamet wrote: I have a legacy application I ported from Rails 2.x

[Rails] Re: Best Rails environment for Windows 7

2011-04-30 Thread Adam Ms.
Colin Law wrote in post #995944: A cautionary note, a new version of Ubuntu (11.04) has just been released, which has made major changes to the UI and still has some teething issues. I would advise an Ubuntu newcomer to install 10.10 for the moment (or even 10.04, the so called Long Term

[Rails] Re: Writing acceptance tests is enough? Are controller/model/view tests necessary?

2011-03-08 Thread Adam Solove
The general rule is: acceptance tests are for your customers, unit and functional tests are for you. Well-written acceptance tests prove that users can complete entire, potentially-complicated interactions and see the right thing on the screen. If you are developing for a customer or with a

[Rails] Re: (ActiveRecord) Why is there no belongs_to_many?

2011-03-06 Thread Adam Solove
Can you please show the database layout you have in mind that this would map to? The normal way would be: User (belongs_to :address) - id - address_id Address (has_many :users) - id If you want the user to not know about the address, you could do: User Addressable - address_id -

[Rails] Re: Rails 3 respond_with csv

2011-03-06 Thread Adam Solove
I'd like to strongly disagree. While csv is not a great way to send objects back and forth, it is a fantastic way to give reports to users, since they can play around with them in Excel. On Mar 5, 9:03 am, marco marcofog...@gmail.com wrote: All right, but, before, why would you do that? I think

[Rails] Re: can you portably store infinity via AR?

2011-02-10 Thread Adam Ms.
Robert Walker wrote in post #980944: Fearless Fool wrote in post #980885: Okay, first some clarifications: Regardless of Ruby's somewhat odd implementation; (1.0 / 0.0) is not equal to infinity. Oy! Now you've stepped in it.

[Rails] Re: Factory Girl, Spork and Cucumber - duplicate model classes

2011-01-25 Thread adam
), :fs_curriculum_country = FsCurriculumCountry.find_by_country_id(address.country.id) ) On Jan 25, 3:23 am, adam adam.elemen...@gmail.com wrote: I forgot to add - this is only an issue with Spork and Cucumber. Rspec and Spork run fine, and before I got Spork working (I think

[Rails] Re: Factory Girl, Spork and Cucumber - duplicate model classes

2011-01-25 Thread adam
be received with much gratitude! Thanks Adam On Jan 25, 1:36 pm, adam adam.elemen...@gmail.com wrote: OK - solved this issue finally. I used 'find' instead of the association:   def create_fs_parent_profile     self.fs_parent_profile = FsParentProfile.new(       :state = address.country.name

[Rails] Re: Trouble with bundler

2011-01-25 Thread Adam Cataldo
This was just me being dumb. The trick is to add gem 'oauth', '0.4.4' to my Gemfile and THEN run bundle install oauth Doing it in the other direction is a bundler no-no. On Jan 24, 5:39 pm, Adam Cataldo adam.cata...@gmail.com wrote: Hi Folks, I'm having trouble using the oauth gem in rails

[Rails] Re: RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-24 Thread adam
Thank you - however that code it already in place.. On Jan 23, 5:29 pm, Arailsdemo A. li...@ruby-forum.com wrote: Try adding this to your spec_helper.rb Spork.each_run do   require 'factory_girl_rails' end adam wrote in post #976883: Strangely - I am not getting this error when running

[Rails] Factory Girl, Spork and Cucumber - duplicate model classes

2011-01-24 Thread adam
definition is as follows: Factory.define :valid_parent, :class = Parent do |p| tp.address { Factory.create(:address) } end If anyone can shed some light on this would be much appreciated! Thank you Adam -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Factory Girl, Spork and Cucumber - duplicate model classes

2011-01-24 Thread adam
end end Spork.each_run do require 'factory_girl_rails' Dir.glob(File.join(File.dirname(__FILE__), '../../spec/factories/ *.rb')).each {|f| require f } end On Jan 25, 2:42 am, adam adam.elemen...@gmail.com wrote: I am having a strange problem with FactoryGirl, Spork and Cucumber. It seems

[Rails] Trouble with bundler

2011-01-24 Thread Adam Cataldo
/commands/console.rb:8:in `start' from /Users/acataldo/mentors/oauth-plugin/ruby/1.9.1/gems/ railties-3.0.3/lib/rails/commands.rb:23:in `top (required)' from script/rails:6:in `require' from script/rails:6:in `main' Any advice on how to get rails to notice oauth? Thanks! Adam

[Rails] Re: RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-22 Thread adam
Thanks guys, got autotest running now with the hack, working like a charm - now I remember that sometimes I do actually enjoy coding! :) Now to get it working properly with Cucumber and Factory Girl (uninitialized constant Factory) ... On Jan 21, 7:12 pm, Arailsdemo A. li...@ruby-forum.com

[Rails] ANN: drifter and drifter-rails

2011-01-22 Thread Ahmed Adam
Hi everyone. I've just released my first two gems, drifter and drifter-rails. Drifter is a simple geocoding library for ruby and drifter-rails provides distance based finders for ActiveRecord 3 (supports postgresql and mysql at present). Each project#s readme file has usage instructions and

[Rails] Re: RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-22 Thread adam
Thank you, but I still get the same error - uninitialized constant FactoryGirl (NameError) I have also posted on the FactoryGirl list: https://groups.google.com/group/factory_girl/browse_thread/thread/8de21a97486?hl=en (see bottom of the thread) Regards Adam On Jan 22, 4:05 pm, Peter

[Rails] Re: RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-22 Thread adam
Strangely - I am not getting this error when running seperate features, only when running just cucucmber --drb On Jan 23, 6:39 am, adam adam.elemen...@gmail.com wrote: Thank you, but I still get the same error - uninitialized constant FactoryGirl (NameError) I have also posted

[Rails] RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-20 Thread adam
I am working on my first Rails BDD project with extensive tests since starting out with Rails a few years ago. Running RSpec or Cucumber is really slow. I'm using Rails 3 and RSpec 2. To run one model spec with only 5 tests takes almost 1 minute! When it finishes it says it took only 0.9 seconds

[Rails] Re: RSpec / Cucumber painfully slow Rails 3 OSX

2011-01-20 Thread adam
Ok - please excuse me - it seems that the info on the Spork readme is out of date... the Rails 3 branch has been merged. just installed and ran a test... wow... 1 minute had become 1 second!! :) On Jan 20, 1:06 pm, adam adam.elemen...@gmail.com wrote: I am working on my first Rails BDD project

[Rails] Re: Factory Girl and attr_accessor with validation

2011-01-20 Thread adam
to an HTML checkbox. So simply change your factory line to this: Factory.create(:valid_user, :tc_check = 1) Luke On 2011-01-18, at 12:57 AM, adam wrote: Thanks, but I have tried that - I get the same result. Validation seems to get called on build as well as create. On Jan 17, 9:20 pm

[Rails] Re: Factory Girl and attr_accessor with validation

2011-01-18 Thread adam
Thanks, but I have tried that - I get the same result. Validation seems to get called on build as well as create. On Jan 17, 9:20 pm, Luke Cowell lcow...@gmail.com wrote: On 2011-01-17, at 9:51 AM, adam wrote: It falls over on validation - Validation failed: Tc check must be accepted

[Rails] Re: Re: Rails on Windows, so slow

2011-01-18 Thread Adam Ms.
Marnen Laibow-Koser wrote in post #975678: I suspect you are wrong. Linux is a great server OS, but most Rails developers I know (myself included) prefer Mac OS (which is BSD, not Linux) as a desktop environment. Best, --  Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org

[Rails] Rails2 to rails3 routes migration problem - namespaces

2010-11-29 Thread Adam W.
such controllers? -- Thanks, Adam Warski -- 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-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: Rails2 to rails3 routes migration problem - namespaces

2010-11-29 Thread Adam W.
obvious at first. But you just need a way to tell Rails to look beyond the first / when finding the controller name. Thanks, Adam -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

[Rails] Re: server overload

2010-11-11 Thread Adam
hmm, I've played around a bit and it somehow started to work well I guess thats good just wish how I've done that so I could setup it on the server properly ;) On 11 Lis, 07:56, Gautam Rege gau...@joshsoftware.com wrote: Adam,  I presume you have run the migration that is generated

[Rails] Re: server overload

2010-11-10 Thread Adam
Yeh i thought about mongrel cluser - I'm just imaging the discussion with the server admins ;) On 10 Lis, 13:23, Michael Pavling pavl...@gmail.com wrote: On 10 November 2010 12:12, Peter Hickman peterhickman...@googlemail.com wrote: How much data is being loaded? If you are adding a large

[Rails] server overload

2010-11-10 Thread Adam
for the manual run. So i don't know if this is a rail problem or mongrel/this whatever - but would be very grateful for a help adam -- 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

[Rails] Re: server overload

2010-11-10 Thread Adam
well its from an xml file which usually is about ~20MB i found one solution which isnt very pretty to run the web page on two different ports using two different instances of mongrel, but I'm looking for somthing more simple for the end user, so he dosn't have to remember to login to one webpage

[Rails] Re: server overload

2010-11-10 Thread Adam
environment. You can use send_later for this and this requires minimal code change. - Gautam @gautamrege On Wed, Nov 10, 2010 at 6:06 PM, Adam anlauf.a...@gmail.com wrote: Yeh i thought about mongrel cluser - I'm just imaging the discussion with the server admins ;) On 10 Lis, 13:23

[Rails] Re: server overload

2010-11-10 Thread Adam
: On Nov 10, 12:55 pm, Adam anlauf.a...@gmail.com wrote: this sound very interesting I'll check that out While delayed_job is handy, you will eventually run out of steam if you only have one mongrel. Others have suggested mongrel_cluster for running multiple mongrels, you might also want

[Rails] Need a optimized version of this

2010-11-05 Thread Adam
The rails version is 2.3 I have a relation offers hm prices In the prices table a have a column named well base_price, + promotion and last_minute The prices for one offer can have promotion checked or last_minute checked indicating that the current price is a promotion or last minute, to find

[Rails] Re: rails 3 remote server startup problem with mongrel_rails

2010-10-01 Thread Adam
The log says that activesupport cannot be found. after lookin a little more i found that ist a problem with the mongrel_rails command and rails 3 On 29 Wrz, 19:41, Heinz Strunk li...@ruby-forum.com wrote: What exactly does the log say? -- Posted viahttp://www.ruby-forum.com/. -- You received

[Rails] rails 3 remote server startup problem with mongrel_rails

2010-09-29 Thread Adam
3) and so on. But when running script/rails s command the application is running fine. The server admins are stuck right now and I need to boot this in a couple of days so my client wont be aggravated. any help is appreciated adam -- You received this message because you are subscribed

Re: [Rails] Bundler picking up wrong version of Ruby with Rails 3 ( possible bundler bug )

2010-09-22 Thread Adam Stegman
like autotest is executing with a different environment than yours. Does it run as a different user (su, maybe), or as a cron job? Either of those would be using a different environment. Try % env PATH=$PATH autotest Adam Stegman -- You received this message because you are subscribed

Re: [Rails] Calling a non-default method of my controller in my views?

2010-09-21 Thread Adam Stegman
On Tue, Sep 21, 2010 at 4:14 PM, rodrigo3n rodrig...@gmail.com wrote: Hello everyone, I have a messages_controller, inside this controller, among all the default methods I have a tweet method that sends the message to twitter, and aside the 'edit' and 'destroy' links I want a 'tweet' one.

[Rails] server problem or rails problem?

2010-09-18 Thread Adam
/mongrel_rails:19:in `load' from /usr/bin/mongrel_rails:19 is this a problem with the server or is something wrong with the application? ( searching on Google found nothing ) thanks for any help, Adam -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] is there any difference between......

2010-09-16 Thread Adam Stegman
method itself. Adam Stegman -- 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 to rubyonrails-talk+unsubscr...@googlegroups.com

Re: [Rails] X Modek object into Y controller

2010-09-13 Thread Adam
On Mon, Sep 13, 2010 at 10:01 AM, Awijeet Mr. li...@ruby-forum.com wrote: How to use x.new() in y_controller.rb where x is model and y is controller? Thanks Nothing to it, just type X.new like you said. What trouble are you having? -- You received this message because you are subscribed

Re: [Rails] Re: Build versus Create?

2010-09-08 Thread Adam
On Wed, Sep 8, 2010 at 12:07 AM, nobosh bhellm...@gmail.com wrote: Adam, interesting , what are you thoughts about when I want to return all books by instance_id.. won't that kill the db looking at the user's table? You're right that it would be extra logic in the query

Re: [Rails] Re: Build versus Create?

2010-09-08 Thread Adam
On Wed, Sep 8, 2010 at 12:55 AM, nobosh bhellm...@gmail.com wrote: I'm trying to work out your suggestion on how to not have a instance_id in books. can you take a look at let me know what's wrong and if this is what you suggest? thxs! class Instance ActiveRecord::Base has_many

Re: [Rails] Re: Build versus Create?

2010-09-08 Thread Adam
On Wed, Sep 8, 2010 at 10:43 AM, nobosh bhellm...@gmail.com wrote: Adding attr_accessible :instance_id to the model gets the value in the db but the instance_id probably shouldn't be accessible as it would allow another instance to possibly steal another user/instance's info, right? You'll

Re: [Rails] Controller usage

2010-09-08 Thread Adam
, to me. If it fails, redirect back to the new page just like a failed save would. Adam Stegman -- 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

Re: [Rails] Controller usage

2010-09-08 Thread Adam
On Wed, Sep 8, 2010 at 10:05 PM, Anthony Smith anth...@sticksnleaves.comwrote: Here's the logic: 1. A user will navigate to the new page 2. A user will be presented with an input box 3. The user enters a value 4. A search will be performed using AJAX 5. If a search comes up

Re: [Rails] Controller usage

2010-09-08 Thread Adam
would it be a member action? If he's searching for a book, he doesn't know yet what book he wants - it would be a collection action. I would also expect it to be a GET, not a POST, since he's retrieving search results, not creating anything. GET /books/search?title=query Adam Stegman -- You

Re: [Rails] Controller usage

2010-09-08 Thread Adam
would make more sense. A RESTful controller is based around a resource. In this case, you're searching a resource to see if it has a record matching your query, so it makes sense to me to put it in /titles/search. Adam Stegman -- You received this message because you are subscribed

Re: [Rails] Controller usage

2010-09-08 Thread Adam
: /titles/:id/search What would you suggest putting as the ID? Instead, this is acting upon the /titles collection of resources, searching for something that exists within it. As such, the URL would be: /titles/search Adam Stegman -- You received this message because you are subscribed to the Google

Re: [Rails] link_to with :method as :post

2010-09-07 Thread Adam
On Tue, Sep 7, 2010 at 3:44 AM, Priyanka Pathak li...@ruby-forum.comwrote: Hello, I am using link_to helper to post the request. i want to hide the extra parameters. so i have tried :method = :post also :post = true. but it's not works for me. still it shows query string. can any one

Re: [Rails] Build versus Create?

2010-09-07 Thread Adam
(params[:book]) or @book = current_user.books.create(params[:book].merge(:instance_id = current_user.instance_id)) Both assume that params[:book] is non-nil and is a Hash. I'd prefer the first - it's more readable. Adam -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] Re: Build versus Create?

2010-09-07 Thread Adam
On Tue, Sep 7, 2010 at 11:41 PM, nobosh bhellm...@gmail.com wrote: Adam, Thanks for the answer, let me add a little color as to what I'm trying to get working: I have the following models: Users (id, name, email, instance_id, etc...) Instances (id, domain name) Books (id, name, user_id

Re: [Rails] deprecation warning in Rails 3 about Base.named_scope

2010-09-01 Thread Adam
a new Rails 3 project and adding your gems one by one. Someone on stackoverflow also posted this issue: http://stackoverflow.com/questions/612/how-to-avoid-deprecation-warning-with-named-scope-rails-2-x-scope-rails-3-c I'd appreciate any help. Thanks in advance =]. Adam -- You received

Re: [Rails] NoMethodError: undefined method `force_encoding' for Conten

2010-09-01 Thread Adam
) is a Ruby 1.9 method, and you're using Ruby 1.8. It looks like the version you're trying to install is written only for Ruby 1.9. You probably need to find an older version. Adam -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Re: NoMethodError: undefined method `force_encoding' for Conten

2010-09-01 Thread Adam
On Wed, Sep 1, 2010 at 2:21 PM, Renato Isidio li...@ruby-forum.com wrote: Adam, we`ve run rake and its ok right now with no errors anymore, but when I try to do a install_gem it gives me another error: fcor...@fcorrea-work:~/Desktop/xykoRuby/mechanize$ rake install_gem --trace rake

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
Using person[address][street_address] to denote a nested Hash structure is semantic, and it is not part of the spec. you might think it trivial, but not all frameworks behave in this way. So it is useful to note that this convention exists and explain its rules. Agreed? That's all I'm asking after

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
That's not all there is to it. There is also a convention using parentheses to combine parameters together. On Aug 25, 12:26 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Adam Lassek wrote: Using person[address][street_address] to denote a nested Hash structure is semantic, In what

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
-Koser li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote: [Please quote when replying.] Adam Lassek wrote: That's not all there is to it. There is also a convention using parentheses to combine parameters together. Never heard of this.  Example? Oh, wait, are you talking about

  1   2   3   4   >