[Rails] Re: ActiveRecordAssociation

2015-10-07 Thread peter williams
@Андрей Молчанов I have a method add_product in the cart_model that's supposed to capture the price from line_item. Within the new migration AddPriceToLineItem i was given the hint to iterate over the LineItem.all.each do |item| add the product_price to each item in LineItem

[Rails] ActiveRecordAssociation

2015-10-06 Thread peter williams
Hi people, i'm new to rails and have difficulties in actively using the model relationships. I'm building an onlinestore with rails 4.2.4 following the book agile development with rails 4. The asignment is to create a migration that copies the product price to the line item. Class Product <

Re: [Rails] Re: Help regarding installation of Gems

2015-09-28 Thread Peter Williams
There are 2 problems: 1. Even though installing ruby seems possible without source files (eg ruby.h) using eg rvm, ruby-install etc, subsequently installing rails as a gem requires these files. To avoid version mismatch with the versions from your os (package manager eg yum,

[Rails] Active resource error expecting hash

2015-05-19 Thread Peter
include_root_in_json = true in your ActiveResource class* But I don't understand where and how. Greatly appreciate your help. Cheers, Peter -- 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] Re: ActionController inherit before_filter

2014-09-30 Thread Peter Hug
Thanks for your feedback Fred. I should have added that I'm using very old Ruby (1.8.7) and Rails (2.2.2) versions. Also, I tried to make my example as simple as possible. In reality, it is a little more complicated. The error is that... ...if I invoke an action on the UserController which

[Rails] ActionController inherit before_filter

2014-09-29 Thread Peter Hug
I have something like this: = class ApplicationController ActionController::Base def check_auth # ... end end class BaseController ApplicationController before_filter :check_auth, :except = [ :getSession ] # more

[Rails] Re: gem install fileutils error

2014-04-30 Thread Peter K.
Hi, Also new to ruby... I get the same error. Did you ever get a meaningful reply to your query? Or is this just another forum where real problems never get answered in the hope that they go away? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] How to fetch youtube data points and save them into database

2014-04-21 Thread Peter Hroph
I'm not looking for solution, but steps *you would* take to figure it out. I'm relatively new to ruby / ruby on rails and desire to learn more through small projects. I don't have experience with APIs and I figured that catching youtube data points and storing them in the database would be a

[Rails] What would make a rails project directory not appear so to rails server?

2014-04-18 Thread Peter D Bethke
might see this? I'm running rails 4.1 and ruby 2.1.1 Thanks! Peter -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr

[Rails] Re: Unable to delete post in sample blog application

2014-04-01 Thread Peter Heylin
the issue isn't something as small as a popup blocker. Thanks, Peter On Monday, 31 March 2014 17:02:09 UTC+1, Peter Heylin wrote: Hi All, I am new to RoR and I am writing a small blog application. I have added a Destroy / Delete link to the post index, but when I click this delete link

[Rails] Unable to delete post in sample blog application

2014-03-31 Thread Peter Heylin
, data: {confirm: 'Are you sure?'} %/td Would anyone have any idea what I might be missing here? Any help appreciated Peter -- 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] Re: Unable to delete post in sample blog application

2014-03-31 Thread Peter Heylin
be required to fix this? Thanks Peter On Monday, 31 March 2014 17:02:09 UTC+1, Peter Heylin wrote: Hi All, I am new to RoR and I am writing a small blog application. I have added a Destroy / Delete link to the post index, but when I click this delete link the show action is fired

[Rails] Re: Unable to delete post in sample blog application

2014-03-31 Thread Peter Heylin
be required to fix this? Thanks Peter On Monday, 31 March 2014 17:02:09 UTC+1, Peter Heylin wrote: Hi All, I am new to RoR and I am writing a small blog application. I have added a Destroy / Delete link to the post index, but when I click this delete link the show action is fired

[Rails] CMS Recommendations

2014-03-31 Thread Peter D Bethke
out of date) and locomotive and a few others. Comfy seems the only one that is making an effort to stay up with the latest rails. I may be wrong - just an initial impression. Any thoughts? Just looking for an impartial recommendation for an “experienced newbie” as it were. Best, Peter Bethke

[Rails] Re: Starting rails server

2014-03-14 Thread Peter Heylin
Thanks for the reply. I have just installed therubyracer and the error remains. nodejs is not installed on the server. On Thursday, March 13, 2014 10:17:04 AM UTC, Peter Heylin wrote: Hi, My apologies if a similar topic exists already. I did search, but could not find anything

[Rails] Re: Starting rails server

2014-03-14 Thread Peter Heylin
. Peter On Thursday, March 13, 2014 10:17:04 AM UTC, Peter Heylin wrote: Hi, My apologies if a similar topic exists already. I did search, but could not find anything related to below. I am new to Ruby on Rails. I am currently setting up a Ruby on Rails environment on a CentOS 6.4 64-bit

[Rails] Re: Starting rails server

2014-03-14 Thread Peter Heylin
. Peter On Thursday, March 13, 2014 10:17:04 AM UTC, Peter Heylin wrote: Hi, My apologies if a similar topic exists already. I did search, but could not find anything related to below. I am new to Ruby on Rails. I am currently setting up a Ruby on Rails environment on a CentOS 6.4 64-bit

[Rails] Starting rails server

2014-03-13 Thread Peter Heylin
:71:in `top (required)' from bin/rails:4:in `require' from bin/rails:4:in `main' Would anyone have any advice or suggestions that might help to steer me in the right direction with regard to resolving the above error. Thanks in advance, Peter -- You received this message

[Rails] Re: Starting rails server

2014-03-13 Thread Peter Heylin
this and what I might have to do to resolve it? Thanks, Peter On Thursday, 13 March 2014 10:17:04 UTC, Peter Heylin wrote: Hi, My apologies if a similar topic exists already. I did search, but could not find anything related to below. I am new to Ruby on Rails. I am currently setting up

[Rails] Inspection,Factory audit , purchasing agent in China

2014-03-02 Thread Peter Luan
Inspection,Factory audit , purchasing agent in China This is Peter from Ningbo China.We have the team which is specialized in the quality inspection,factory audit,on line check,final shipment check and loading supervision etc.We have experienced quality engineers who had worked before

Re: [Rails] OT: buying a Mac computer

2014-02-26 Thread Peter Hickman
Speaking as a long time Mac user I have to say that if you are comfortable with Linux on a cheap laptop then there is very little *more* you would get as a Rails developer in moving to a Mac. If you are deploying to a Linux server (as opposed to a Windows server) then a Linux laptop will get you

[Rails] Re: New Rails Voting Engine

2014-01-28 Thread Peter
, Peter wrote: Greetings, I have created voting enginehttps://github.com/petertoth/neutral for Rails4+ applications. It is ajaxful and integrated with FontAwesome. Basically it is very similar to star rating but you nautrally vote for or against. It might sometimes behave shaky when broken

[Rails] New Rails Voting Engine

2014-01-26 Thread Peter
Greetings, I have created voting enginehttps://github.com/petertoth/neutral for Rails4+ applications. It is ajaxful and integrated with FontAwesome. Basically it is very similar to star rating but you nautrally vote for or against. It might sometimes behave shaky when broken jquery,

[Rails] Why Does def some_func=(obj) Behave This Way?

2014-01-20 Thread Peter
Hello Everyone, Why does this function behave this way? class Confuse def confusion=(obj) @obj = obj return 'expected answer' end end c = Confuse.new c.confusion = 'this should be wrong' This returns 'this should be wrong'. I am reading *Programming Ruby 1.9 2.0* by

[Rails] Re: why is my rspec controller test for get method not working?

2013-11-20 Thread Peter
).to be_new_record On Sunday, November 17, 2013 2:50:51 AM UTC-5, Peter wrote: https://github.com/haloflightleader/bank/commit/88762271b5feda1390054b472cfb1de006c2b5da I corrected my code, but am still getting this: Failures: 1) AccountsController Get new assigned @account Failure

[Rails] why is my rspec controller test for get method not working?

2013-11-16 Thread Peter
Hello Everyone, Why is my controller test in the get method not working? https://github.com/haloflightleader/bank/blob/02695c7c5106b30e178d3a0d05125f8deedd5e67/spec/controllers/accounts_controller_spec.rb#L18 This is practically a copy from the rails guides and it works in my index test. The

[Rails] Re: why is my rspec controller test for get method not working?

2013-11-16 Thread Peter
-8, Peter wrote: Hello Everyone, Why is my controller test in the get method not working? https://github.com/haloflightleader/bank/blob/02695c7c5106b30e178d3a0d05125f8deedd5e67/spec/controllers/accounts_controller_spec.rb#L18 This is practically a copy from the rails guides and it works

Re: [Rails] Can we keep validation in memcached ?

2013-11-02 Thread Peter Hickman
Memcached is only useful for storing the responses and unless the validation rules are incredibly complicated using memcached is not going to speed anything up. Simply not the right tool for the job, the real question is why are your validation rules so slow. On 2 November 2013 20:16, Fahim

[Rails] Routing issue in 3.1.1

2013-10-30 Thread Peter Hickman
I have a 3.1.1. app that is running in production and has been for several weeks now. I just added a new page and controller with an entry in routes.rb In development everything is just fine. But when I deploy the change to production I get a problem with the routes. Everything else is just fine.

Re: [Rails] Routing issue in 3.1.1

2013-10-30 Thread Peter Hickman
Aaargh. Its mercurial being a complete arse. It was ignoring the file for it's own twisted reasons and not telling me about it. Sorry for wasting your time :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

Re: [Rails] Are you a Ruby or Rails Vetran- Pls write to me

2013-10-25 Thread Peter Hickman
So 1 years experience with Ruby or RoR makes you a veteran these days? In that case I'm a dinosaur :) God knows what Matz is. Super Saiyan perhaps? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

[Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Peter
directory? Or should I place it elsewhere? Thank you. Peter -- 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

Re: [Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Peter
to get list of servers... end def show_server(int) ... call to AWS API to get info on server int ... end end On Saturday, October 12, 2013 3:49:59 PM UTC-7, Jordon Bedwell wrote: On Sat, Oct 12, 2013 at 5:06 PM, Peter pe...@poproj.com javascript: wrote: What if you don't want

[Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Peter
Hello Everyone, Could anyone tell me why my spec/features are not being read? Ruby 2.0 Rails 4.0 Rspec 2.14.0 capybara 2.1.0 It is a fresh 'rails new some_app'. I created a spec/features directory and added a bla.rb with bad syntax to cause it to fail, when I run rspec it says 0 examples and

Re: [Rails] My spec/features isn't being read by rspec

2013-10-12 Thread Peter
OMG! Thank you. On Saturday, October 12, 2013 7:54:19 PM UTC-7, Carlos Figueiredo wrote: Try rename your file to bla_spec.rb Atenciosamente, *Carlos Figueiredo* On Sat, Oct 12, 2013 at 11:33 PM, Peter pe...@poproj.com javascript:wrote: Hello Everyone, Could anyone tell me why my spec

[Rails] Gem install fails due to invalid option

2013-09-29 Thread Peter Bolier
Hi y'll, On attempting to install rails on a windows7 system it fails with: H:\gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. H:/My Programs/Ruby200-x64/bin/ruby.exe extconf.rb

Re: [Rails] What is the best way to convert a currency string 'USD' to locale :en-US?

2013-09-24 Thread Peter Hickman
Hang on do you mean to convert USD 1000 into AUD 1000? Surely you would need to do a currency conversion because USD 1000 is AUD 1064. This would seem to have nothing to do with locales at all. On 24 September 2013 16:58, Walter Lee Davis wa...@wdstudio.com wrote: You could make a helper that

Re: [Rails] Re: Having some issues on backend regarding a social networking project on ROR

2013-09-13 Thread Peter Hickman
On 12 September 2013 16:44, Yash Ladia ladiay...@gmail.com wrote: Thanx for your reply.My problem is that at a later point of time this would account for very large data set as the users will increase. I want to optimize my website and want to save time on data query from the database.Also, i

Re: [Rails] Having some issues on backend regarding a social networking project on ROR

2013-09-12 Thread Peter Hickman
The information would seem to fit a RDMS perfectly. But then as you have not given us any idea as to how simple or complex you expect this data to be no one can tell. Tell us what the data is like and we will be able to give you a better answer. On 12 September 2013 09:16, Yash Ladia

Re: [Rails] I need help in cloning a website

2013-08-07 Thread Peter Hickman
What did the mkmf.log file say? On 6 August 2013 10:48, Raphael Manaloto raphnaj...@gmail.com wrote: http://i1278.photobucket.com/albums/y513/raphmanaloto/RubyOnRailshelp_zpsb7bcd4f4.png as you can see im stuck here,anyone know how to fix this so i can use gem install libv8 -v 3.3.10.4

Re: [Rails] Ruby on Rails Interview Questions and Answers for all Ruby Lovers.

2013-08-02 Thread Peter Hickman
Hmm. Not sure about this: For example if I asked you this question: What are the servers supported by ruby on rails? And you answered Generally Webrick is a prefered server to run ROR You would have failed the interview there and then. Also most of the advantages cited for RoR have nothing to

Re: [Rails] New web server suggestions

2013-07-24 Thread Peter Hickman
I would suggest a Raspberry PI with a 8Gb SD card Of course that wont be of any use to you if your application requires to handle 100s of users and has constant database access. But then again WE ARE NOT PSYCHIC!! On 23 July 2013 13:37, Rob Daniels r.dani...@gmail.com wrote: I've been

Re: [Rails] New web server suggestions

2013-07-24 Thread Peter Hickman
Additionally what does hundreds of users mean? Hundreds of simultaneous users or hundreds of registered users who log in once a month. How big is your product catalogue? Do you have a lot of products or only a few? How important is search? A basic setup could be: 1) Nginx to receive the

[Rails] [JOBS] Senior Ruby on Rails Developer - Chicago, IL - full-time

2013-07-24 Thread Peter
Please see the job posting on the 37signals job board: http://jobs.37signals.com/jobs/13233 Must be located in Chicago, IL. Principle candidates only, no recruiters. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from

[Rails] Re: Learning About Symbols

2013-07-12 Thread Peter
On Friday, July 12, 2013 12:49:11 AM UTC-7, Ruby-Forum.com User wrote: One reason to use Symbols is that they are immutable. When you're passing one around as an argument or Hash key, it won't change. Another is that multiple instances of a Symbol are the same object, making a smaller

[Rails] Re: Learning About Symbols

2013-07-12 Thread Peter
Are these true or false? yaml['config'] == yaml[:config] yaml['config']['another_setting'] == yaml[:config][:another_setting] The answer to both is false. yaml['config'] shows me the values from the yml file. yaml[:config] doesn't. How else do you use symbols? I have read all the

[Rails] Learning About Symbols

2013-07-11 Thread Peter
Hi Everyone, I *kind of* get the idea of *symbols*. So I need help to understand them more fully. --- config.yml config: some_setting: 'setting_one' another_setting: - 'element1' - 'element2' So how do I ingest this: yaml = YAML.load('config.yml') Are these true or false?

[Rails] Do I Edit the Migration Too to Show the Belongs To

2013-07-10 Thread Peter
Hi Everyone, Do I edit the corresponding migration also to show the belongs_to (and the has_many)? I have a many to many relationship where I am using the has_many :through association. When I place in the individual classes the 'has_many :through' and the 'belongs_to' associations, do I also

Re: [Rails] Re: Reducing downtime

2013-07-04 Thread Peter Hickman
On 3 July 2013 20:25, Robert Walker li...@ruby-forum.com wrote: A robust solution is to use database replication and then run your backups off the replica, This way you have at least two servers that are kept synchronized constantly, Backups of the replica will also not impact the performance

Re: [Rails] Re: Reducing downtime

2013-07-04 Thread Peter Hickman
On 4 July 2013 12:08, Jordon Bedwell envyge...@gmail.com wrote: You really only have two options here if you ask me, learn to do live snap-shots so you can roll-back or learn to deploy early and often with small changes that will not drastically break anything and can be easily rolled back if

Re: [Rails] Re: Reducing downtime

2013-07-04 Thread Peter Hickman
On 4 July 2013 12:19, Simon Riggs si...@2ndquadrant.com wrote: Sorry to hear you spent some fruitless time there. PostgreSQL supports various kinds of replication - both internal streaming and Londiste work very well for many people, so those technology choices are good ones. When it was

[Rails] Reducing downtime

2013-07-03 Thread Peter Hickman
We have our RoR apps on cloud servers that can be blown away and rebuilt with the aid of chef. The only volatile data on the server is the database which we backup periodically and pull off to our backup server. If we backup the database once a day then should things go wrong and we restore the

Re: [Rails] Re: Heroku's “pg:psql” command doesn't work. How to pass commands to load schema from structure.sql?

2013-06-19 Thread Peter Hickman
Your question is not a general deployment question. It is heavily dependent on Heroku and as such somewhere more focused would be a better place to ask. As proof look at all the replies you have received! That is because people see oh he's having a problem with Heroku (its even in the subject

[Rails] Re: How about add a method to truncate a long text more smart?

2013-06-04 Thread Peter
/truncate_htmland consider combining your functionality into there as options. \Peter -- 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

Re: [Rails] Regarding Future in ROR

2013-06-02 Thread Peter Hickman
What sort of timespan are you concerned about? For the next few years there will be plenty of RoR jobs. However what sort of demand there will be in, say, 30 years is anyones guess. I suspect that it will be less than now as, I hope, new and exiting technologies will emerge in the next 30 years.

Re: [Rails] IRB can't require nokogiri

2013-05-29 Thread Peter Hickman
Can you require any of the others? Have you run require 'rubygems' first? Please put a little more effort into this -- 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

[Rails] Should Customers and Admins be on Separate Tables?

2013-05-24 Thread Peter
Can I please get everyone's opinion? Should customers and admins be on separate tables? I'm developing an application that has two kinds of users, a customer and an administrator. The application basically is a shopping cart. Customers from the internet create their accounts so they are able

Re: [Rails] Re: Does anyone who USES Rails hate Rails?

2013-05-01 Thread Peter Hickman
On 1 May 2013 12:10, Molly Cat li...@ruby-forum.com wrote: I am no fan of it.. I've been stranded in it for over a year now and i still loath it. I have to stay because the job looks like crud on my CV, and when people ask me what i've doing i have to say Rails. Then the interview

[Rails] Using ActiveRecord to add data on record load

2013-04-15 Thread Peter Hicks
'runs_on', and when I request the associated schedule locations, the 'arrival_time' and 'departure_time' fields are auto-calculated based on the instance variable in the schedule model. Is this a sensible way to do things? Is this even possible or am I over-engineering it? Peter -- You received

[Rails] Re: What is Javascript-Runtime for?

2013-04-07 Thread Peter
for everyone's input. p On Sunday, April 7, 2013 3:35:04 AM UTC-7, Frederick Cheung wrote: On Friday, April 5, 2013 7:01:50 PM UTC+1, Peter wrote: Thanks for replying, Frederick. So help me understand this: javascript-runtime is actually the javascript interpreter. Right? But what is odd

[Rails] Re: What is Javascript-Runtime for?

2013-04-05 Thread Peter
get this wrong? So how does installing node-js, a javascript script, solve the problem of not having a javascript interpreter to begin with? Thanks again. On Thursday, April 4, 2013 5:39:43 AM UTC-7, Frederick Cheung wrote: On Thursday, April 4, 2013 1:14:01 PM UTC+1, Peter wrote: Hello

[Rails] What is Javascript-Runtime for?

2013-04-04 Thread Peter
server, I do not need either one of these. And my browser definitely interprets javascript built in. So how does this fit in to everything? Is my premise incorrect? Thank you. Peter -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Why Did Capybara Move Specs into spec/features?

2013-04-02 Thread Peter
in the future which will provide more up-to-date material. You might also want to look at RSpec's 'expect' syntax for its assertions. They plan on deprecating the 'should' syntax possibly as early as RSpec 3.0. On Sunday, March 31, 2013 1:57:30 PM UTC+8, Peter wrote: Hello Everyone, I am new

[Rails] Why Did Capybara Move Specs into spec/features?

2013-03-30 Thread Peter
Hello Everyone, I am new to Ruby on Rails. I just finished Michael Hartl's *Ruby on Rails Tutorial* http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and I just started on *Agile Web Development with Rails, Fourth Edition* by Sam Ruby

Re: [Rails] Which Gem to use ?

2013-03-13 Thread Peter Hickman
Well lets take these in order. - Search Depends on how you are storing your data. You could put it in a database and use the text search functionality that goes with your database. Or you could store the information in a NoSQL document store, so you will need a gem that works with the document

[Rails] Re: boolean? Emit Yes or No, not true or false

2013-02-15 Thread Peter Ehrlich
Found via google. I made a quick script for this. Sorry for reviving.. class TrueClass def to_s(style = :boolean) case style when :word then 'yes' when :Word then 'Yes' when :number then '1' else 'true' end end end class FalseClass def to_s(style =

Re: [Rails] Ruby on Rails

2013-02-06 Thread Peter Hickman
Perhaps you should try a Java newsgroup as this is a pure Java vacancy, Rails only appears as a plus on the second to last bullet point. On 5 February 2013 19:34, Robert Adcock recruitme...@gmail.com wrote: Hi I get alot of job postings from client such as this one in PA:

Re: [Rails] Web Services on Rails.

2013-02-05 Thread Peter Hickman
Well personally speaking we use REST serialising to XML or JSON (we much prefer JSON). It's probably not text book web services but our clients have no problem using them. We only use SOAP for legacy services and then we tend to proxy them through REST XML because it's much easier to use. Once

Re: [Rails] Web Services on Rails.

2013-02-05 Thread Peter Hickman
heavily loaded at times. On 5 February 2013 15:54, BalaRaju Vankala foreverbal...@gmail.com wrote: Thank you Peter Hickman, I am new to develop web services, Can you Explain how its work with an Example in Rails ??. I am Searching in google, but I didn't get the appropriate result. Thanks

[Rails] joining 2 tables

2013-01-31 Thread Fabian Peter
Hello, I'm trying to join 2 tables with ruby on rails 3.2. rails generate model product name:string rails generate model price product_id:integer price:integer date:datetime product.rb: class Product ActiveRecord::Base has_many :prices end price.rb: class Price ActiveRecord::Base

Re: [Rails] Highload project on RoR

2013-01-16 Thread Peter Hickman
The first question is where is this load going to hit your system. No point boosting Redis if PostgreSQL is the problem, no point booting PostgreSQL if the server is under powered. You could waste a lot of time and effort if you don't measure the problem first. -- You received this message

Re: [Rails] Highload project on RoR

2013-01-16 Thread Peter Hickman
On 16 January 2013 16:06, Vitaly Zemlyansky vitozem...@gmail.com wrote: Currently, I don't have problems. As I wrote, I am just expecting that most problems will be with DB's. I read about this problems in architecture of highload projects. And I know that relational model can't scale for

[Rails] Rspec: How to test create action in controller

2013-01-13 Thread Peter
Hi Everyone, (using rails 3.2.11) I've searched high and low for the answer to this, so now I have to submit a question... # describe POST on Users#create do # before { post users_path } # specify { response.should redirect_to(root_path) } # end Every time I

Re: [Rails] my PHP buddy...

2012-12-19 Thread Peter Hickman
Let me get this straight. You are developing a site in Rails and then giving the code to a PHP developer who will rewrite it in PHP? Why doesn't the PHP guy develop the site? Why don't you just use the Rails site? Why don't you learn PHP and develop the site? Translating from Rails to PHP is

Re: [Rails] Re: DragonFly Object not found in Production

2012-11-07 Thread Peter Hickman
On 7 November 2012 13:27, enrico stano enrico...@gmail.com wrote: so... I just realized that relative links like a href=/media/etcetcI'm a relative link/a If it starts with a / is is not a relative link, it is an absolute link. Try a href=media/etcetcI'm a relative link/a -- You

Re: [Rails] Re: How to open PDF file in browser ?

2012-11-07 Thread Peter Hickman
This post was from 3 years ago. Please do not raise the dead. On 5 November 2012 07:15, Sateesh sateesh.chaduv...@gmail.com wrote: Just use this command : send_file(pdf_file_path, :type = 'application/pdf', :disposition = 'inline') On Thursday, June 18, 2009 9:41:17 PM UTC+5:30, Dharmdip

Re: [Rails] Not updating the updated_at field

2012-10-24 Thread Peter Hickman
The problem is that the updated_at field is useful for other functions but the last_seen field being updated is causing the updated_at field to update and records are being processed if they have been updated since the system was last checked (I hope I explained that correctly). Basically the

[Rails] Not updating the updated_at field

2012-10-23 Thread Peter Hickman
This is for Rails 3.1.1 I have a field called last_seen in a model. This field will be updated when the something about the record is seen in the real world (don't worry about this part) So I go x.update_attribute(:last_seen, Time.now) and the following happens is UPDATE blah SET last_seen =

[Rails] Unable to build Rails App in Jenkins using Maven, unable to package gems into jar

2012-10-22 Thread Peter Chu
I have been working on a rails app for a few months. The company I am working uses some internal platform to package the Rails app for deployment. It uses apache maven to do the packaging, and the building is done on Jenkins. Each build is to package the app into an rpm (with a tarball as well).

Re: [Rails] Error in cap deploy command

2012-10-08 Thread Peter Hickman
It cannot create /u/apps/mysite/releases/20121008150536 because the permissions are wrong. Start at /u/apps/mysite and work down checking the permissions -- 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

Re: [Rails] RoR performance

2012-10-05 Thread Peter Hickman
When you get to the size of Twitter or LinkedIn then worry about it. Ambition is a good thing but don't let it get in the way of getting things done. -- 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

Re: [Rails] Question . how to create multiple new records from single new page and from same model?

2012-09-26 Thread Peter Hickman
This is two issues, how to deal with a form that allows you to create multiple users and how to extend an existing form. Lets deal with the simplest one first: Create a form that allows 4 users to be created at once. No javascript, just write a form that displays the fields to add 4 users. When

Re: [Rails] 'gvim' is not recognized as an internal or external command, operable program or batch file.

2012-09-25 Thread Peter Hickman
Do you have gvim installed? If not then install it, otherwise it will be a path issue -- 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,

Re: [Rails] Re: how to get effects from test database to development database

2012-09-22 Thread Peter Hickman
To be honest you should fix your development database to be how it should be. If it is correct and the test database does not match then the test database is in error. You are getting no response to your query because no one in their right mind would do what you want to do and so there is no

Re: [Rails] Re: how to get effects from test database to development database

2012-09-22 Thread Peter Hickman
There is no command to migrate the structure of the test database to the development database. There is no need for such a command. Just create migrations for the development database that set it up correctly in the first place. -- You received this message because you are subscribed to the

Re: [Rails] Ruby Developer required!

2012-09-20 Thread Peter Hickman
For anyone to email you you would need to give them an email address. Or is that part of the application process :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

Re: [Rails] Re: Ruby Developer required!

2012-09-20 Thread Peter Hickman
Fiona This is not a forum. It is a mailing list that is echoed to a forum. The email address attached to your name is li...@ruby-forum.com. Which means all responses will be sent to the list for all to see. Peter -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] Rails on windows

2012-09-19 Thread Peter Hickman
From a purely RoR developer perspective Linux is good. Which you would expect since most RoR applications are deployed to Linux servers - or are you deploying to Windows servers. Its just that Macs are nicer :) As to why your Windows system is slow for developing could be that you have a crappy

Re: [Rails] Re: ROR books seem to be out of date

2012-09-18 Thread Peter Hickman
Without knowing what you routing file looks like no one can help you. Type 'rake routes' and see what routes have been defined -- 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

Re: [Rails] ROR books seem to be out of date

2012-09-15 Thread Peter Hickman
You seem to be complaining about the IDEs more than RoR. Give us some details and we might be able to help you. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

Re: [Rails] Re: Different DataBases Used in ROR

2012-09-14 Thread Peter Hickman
Oracle is closed source, if something goes wrong you cannot look at the source and fix it yourself or submit a detailed bug request. Not everyone does this but it is an important point for some people. It also costs a lot of money. Starting with the low end processor license Standard Edition One

Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-14 Thread Peter Hickman
And this is why people complain about job ad on this list! No location (I will not relocate to Greece for this job) No salary (Without the location I have no idea as to the cost of living and cannot judge the value of the package) No company details (I have no interest in working for another me

Re: [Rails] (JOB) Looking for RoR Engineer

2012-09-14 Thread Peter Hickman
To be honest I always assume that the location is the US and given that an ocean lies between us stop reading them. Of course given the size of the US I would probably want to know at least the state they are in if I was American. A city would be preferable :) What gets to me is the lack of

Re: [Rails] Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread Peter Hickman
To be honest given the wealth of resources available for free I can't see why you would need to pay anything to learn RoR. If the free stuff doesn't click get a book or two. If, after that, you still don't get it then I suspect that paying for a bunch of videos is probably throwing money away.

Re: [Rails] Which Framework will improve my Ruby Skills?

2012-09-02 Thread Peter Hickman
Programming in Ruby will improve your Ruby skills. Work on non trivial projects that involve things that you have not done before and see them through to completion. This way you will gain experience and hone your skills. Reflect upon the quality of your work. Criticise your own work. Find your

Re: [Rails] Is it a good idea for me to learn Ruby on Rails?

2012-08-30 Thread Peter Hickman
For someone who says that they have very little programing knowlege you seem to have your mind already made up. Why did you even come here and ask your question if you already know the answer? As a side note we use Rails and we do not need Java or Scala to get things to work. We may not be

[Rails] Re: undefined method `with_indifferent_access' for :String

2012-08-17 Thread Peter p.
this. Hi arturo drlt, Try without fields_for It really works! ;-) Regards, Peter ** -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Missing earlier versions work around for XSS Vulnerability in strip_tags

2012-08-10 Thread Peter Galiovsky
, Peter -- 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, send email to rubyonrails-talk+unsubscr

[Rails] Earlier verions work around for XSS Vulnerability in strip_tags missing

2012-08-10 Thread Peter Galiovsky
in advance. Best, Peter smime.p7s Description: S/MIME Cryptographic Signature

[Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-09 Thread Peter
: = simple_form_for @user do |f| Because simple_form_for will eventually do url_for(@user) like link helpers and therefore as long as owners and members are routed it should work. \Peter -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

  1   2   3   4   5   6   7   8   9   10   >