Re: [Rails] What's the best practice to protect rails code in a small company?

2011-02-26 Thread Michael Pavling
On 26 February 2011 01:51, Weichao Liu weichao...@gmail.com wrote: On Fri, Feb 25, 2011 at 9:30 PM, Colin Law clan...@googlemail.com wrote: On 25 February 2011 12:47, Sean W. Liu weichao...@gmail.com wrote: Hi fellows, I'm starting a small company developing a SNS website and we are using

[Rails] Re: gem error: (Errno::EACCES) Permission denied

2011-02-26 Thread mahendra Somavarapu R.
I am using microsoft XP Pro-SP3 and I am facing this problem. C:\Ruby192gem install rails --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list ERROR: While executing gem ... (Errno::EACCES)

Re: [Rails] Devise or Authlogic?

2011-02-26 Thread Mark Kremer
The Railscast on rolling your own authentication solution was made later than the Railscasts on Devise. Ryan made the later cast on rolling your own because he kept getting a lot of questions on Devise. On 25-2-2011 1:58, Vladimir Rybas wrote: ... as well as Devise screencasts

[Rails] Re: Retweet Functionality

2011-02-26 Thread Chandu80
Thanks :) Regards Chandrika On Feb 24, 4:58 pm, Akhil Bansal bansalakhil30...@gmail.com wrote: Please have a look athttp://twitter.comto see how re-tweet works Thanks, Akhilhttp://webonrails.com On Feb 24, 4:30 pm, Chandu80 chandu.she...@gmail.com wrote: Hello All, I am working on a

[Rails] Rails Project Won't Compile - No Detailed Errors - Help!

2011-02-26 Thread noname
When I try to run my rails project, I get a message that there is a syntax error and the application cannot compile (see below). However, it does not tell me which file has this error. So instead of saying (index.erb):56: syntax error, unexpected $end, expecting ')' it just has (erb) where it

[Rails] Re: Rails 3 and Sproutcore

2011-02-26 Thread Jeanine Swatton
Hey Eduardo, I tried going through the tutorial to connect it with the backend (Rails 3) - had no luck with it. :-(.. On Feb 25, 10:06 am, Eduardo de O. Hernandes eduardod...@gmail.com wrote: Hi people, Anyone is using Rails 3 (backend) with Sproucore (front-end) ? -- You received this

[Rails] New Member - Can I post RoR jobs?

2011-02-26 Thread *Recruiter
Good evening, As I was scouring the internet for RoR developers I came across this group and was wondering if was OK to post that I am looking a few rock start RoR developers for our company in San Jose? We also have an excellent referral program. If you refer someone that we hire, after 90

[Rails] Re: multiple rescue for create

2011-02-26 Thread Frederick Cheung
On Feb 26, 6:00 am, Me chabg...@gmail.com wrote:       if @tour_type.save Do you realise that this will never raise ActiveRecord::RecordInvalid? If the record is invalid, save just returns false (save! raises) Fred -- You received this message because you are subscribed to the Google

[Rails] Re: multiple rescue for create

2011-02-26 Thread Frederick Cheung
On Feb 26, 6:13 am, Bryan Crossland bacrossl...@gmail.com wrote: And I take it you are still getting the error? If that is the case, then change your view from using a datetime_select to using a date_select. You maybe encountering the problem discussed

Re: [Rails] New Member - Can I post RoR jobs?

2011-02-26 Thread Michael Pavling
On 26 February 2011 02:42, *Recruiter athenabin...@gmail.com wrote: As I was scouring the internet for RoR developers I came across this group and was wondering if was OK to post that I am looking a few rock start RoR developers for our company in San Jose? If the Rails wiki was working (what

[Rails] Re: Dropbox API for Ruby

2011-02-26 Thread branni
Yes, but I didn't find anyway to do this. Although, I saw an app that can share dropbox folder... On febr. 26, 02:16, Bryan Crossland bacrossl...@gmail.com wrote: Try running a rdoc on the dropbox gem to see the documentation that comes with it. B. Sent from my iPhone On Feb 25, 2011, at

[Rails] Re: Rails Project Won't Compile - No Detailed Errors - Help!

2011-02-26 Thread Frederick Cheung
On Feb 26, 12:37 am, noname informzoo.ad...@gmail.com wrote: When I try to run my rails project, I get a message that there is a syntax error and the application cannot compile (see below).  However, it does not tell me which file has this error.  So instead of saying (index.erb):56:  syntax

[Rails] Params equal by apply custom routing rule

2011-02-26 Thread Pavel Belyakov
I have a little problem with routing while code new application on rails 3.0.4. My config/routes.rb: Zi::Application.routes.draw do ... scope /cpd, :controller = :control_pds do match index = :index match :org_id = :show, :as = cpd match :org_id/new = :new, :as = new_control_pds

Re: [Rails] Rails Project Won't Compile - No Detailed Errors - Help!

2011-02-26 Thread Colin Law
On 26 February 2011 00:37, noname informzoo.ad...@gmail.com wrote: When I try to run my rails project, I get a message that there is a syntax error and the application cannot compile (see below).  However, it does not tell me which file has this error.  So instead of saying (index.erb):56:  

Re: [Rails] Rails Project Won't Compile - No Detailed Errors - Help!

2011-02-26 Thread Michael Pavling
On 26 February 2011 00:37, noname informzoo.ad...@gmail.com wrote: ERROR MESSAGE: Uncaught exception: compile error (erb):56: syntax error, unexpected $end, expecting ')' ; _erbout Can someone provide some pointers to help me narrow the field a bit? This is a horrid error to debug, because

[Rails] Re: PDFKit javascript issues

2011-02-26 Thread Conor Nugent
Actually having looked at the middleware source a little more carefully it does look like the javascript paths need to be translated to their absolute form so that wkhtmltopdf can find the resources. There is also a trouble shooting section of PDFKit github page that basically points this out

Re: [Rails] Devise or Authlogic?

2011-02-26 Thread Alex Katebi
Neither, go with the external authentication omniauth gem. People don't like to register to any web sites. They like to use their existing accounts. On Sat, Feb 26, 2011 at 3:49 AM, Mark Kremer m...@without-brains.netwrote: The Railscast on rolling your own authentication solution was made

[Rails] Re: What's the best practice to protect rails code in a small company?

2011-02-26 Thread Sean W. Liu
Hi Michael, I just wrote a lot to reply but eventually decided to simply say: Thanks very much! I think I get your point. Sean On Feb 26, 4:41 pm, Michael Pavling pavl...@gmail.com wrote: On 26 February 2011 01:51, Weichao Liu weichao...@gmail.com wrote: On Fri, Feb 25, 2011 at 9:30 PM,

[Rails] attrs_accessible.

2011-02-26 Thread Mauro
I know it's a good practice setting attr_accesible for models. As an example if I have a model with admin: boolean attribute and if I don't set attr_accessible, a user can do: put /users/17?admin=1 making user 17 an admin. But if I have attr_accessible set and I want to create new users with a

Re: [Rails] attrs_accessible.

2011-02-26 Thread Peter De Berdt
On 26 Feb 2011, at 15:31, Mauro wrote: I know it's a good practice setting attr_accesible for models. As an example if I have a model with admin: boolean attribute and if I don't set attr_accessible, a user can do: put /users/17?admin=1 making user 17 an admin. But if I have attr_accessible

Re: [Rails] attrs_accessible.

2011-02-26 Thread Colin Law
On 26 February 2011 14:31, Mauro mrsan...@gmail.com wrote: I know it's a good practice setting attr_accesible for models. As an example if I have a model with admin: boolean attribute and if I don't set attr_accessible, a user can do: put /users/17?admin=1 making user 17 an admin. But if I

Re: [Rails] Re: Rails 3 and Sproutcore

2011-02-26 Thread Eduardo de O. Hernandes
Hi Jeanine, well, with some adjustments the application ran (with backend Rails 3). The problem is in JSON format... On Sat, Feb 26, 2011 at 4:29 AM, Jeanine Swatton rubymee...@gmail.comwrote: Hey Eduardo, I tried going through the tutorial to connect it with the backend (Rails 3) - had no

Re: [Rails] filemaker

2011-02-26 Thread Walter Lee Davis
On Feb 25, 2011, at 10:35 PM, LegacyUSA wrote: My goal is to develop a small prototype using ruby: I want to program as little as possible in whatever database linguo the database uses. In that case, I would just use the SQLite that you get for free when you start any Rails project

[Rails] Re: New Member - Can I post RoR jobs?

2011-02-26 Thread *Recruiter
Good morning, I just removed my posting and will be submitting our real job descriptions. I don't know why I didn't see the conditions of use, but I did this morning :) Thanks for pointing it out! I also see there was a typo and another developer told me to remove the Rock Star reference

[Rails] [JOBS] Ruby on Rails - Back End Developer

2011-02-26 Thread *Recruiter
**Thank you** Ruby on Rails - Back End Developer Description: This is a key development role at Mixbook, a profitable, rapidly- growing startup that is changing the game in the personalized photo books / photo products market. In the past, the standard applications for creating photo book

[Rails] [JOBS] Ruby on Rails

2011-02-26 Thread *Recruiter
Sr. Ruby on Rails Engineer Description: Do you have what it takes to spearhead new product initiatives and uphold Mixbook's virtues of writing the most beautiful, modular, concise RoR code possible? RoR is the glue that holds together the entire user experience, from intial signup through

[Rails] Re: What's the best practice to protect rails code in a small company?

2011-02-26 Thread Danny Burkes
If you don't trust your own developers, you have bigger problems than any obfuscation or compartmentalization scheme can solve. Find developers that you consider your trusted colleagues and build your product with them. - D -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] How to manage the form of a model that has two foreign keys

2011-02-26 Thread Amokrane
Hi, Basically I have two models: User and Godfather. The godfather table has three columns: - user_id (FK -- User) - user_godfather_id (FK -- User) - description (text) Inside each model class, I am adding the following associations: class User ActiveRecord::Base has_many

[Rails] Re: How to manage the form of a model that has two foreign keys

2011-02-26 Thread Amokrane
Just wanted to add a small correction for the Godfather model: class Godfather ActiveRecord::Base belongs_to :user belongs_to :user_godfather, :class_name = User end On Feb 26, 11:38 pm, Amokrane amokrane.chen...@gmail.com wrote: Hi, Basically I have two models: User and

[Rails] Installing ROR on ubuntu 10.04

2011-02-26 Thread Mitin Rai
Hi I have installed Ubuntu 10.04 on my lenova. Tried installing ruby through synaptic package manager. I am unable to run ruby,rails commands through command prompt.. can anyone suggest the best way to install ruby on rails on ubuntu and also the suggested versions... Thanks -- You received

[Rails] Re: What's the best practice to protect rails code in a small company?

2011-02-26 Thread Sean W. Liu
Hi Danny, Thanks for your advice! But please don't take it the wrong way. IP protection policy doesn't mean a company does not trust their employees! Or otherwise, why there is something called NDA, right? Why not simply employ the ones you trust? It doesn't matter if one joins a company or work

[Rails] [ANN] Rails 3.0.5 has been released!

2011-02-26 Thread Aaron Patterson
# Rails 3.0.5 has been released! ## Bugs Fixed: * Fix when gzip returns a UTF-8 string on Ruby 1.9, when it is actually binary. 31690ea8b3420aea4ea4427e1599665d093c974f * ActiveRecord limit values will not escape Arel SQL Literal nodes

Re: [Rails] Installing ROR on ubuntu 10.04

2011-02-26 Thread jason white
I use the ruby one line installer, and it works perfectly http://www.rubyinside.com/rails-ready-ruby-and-rails-on-ubuntu-in-one-line-4214.html -- jason white Sent with Sparrow On Saturday, February 26, 2011 at 7:54 PM, Mitin Rai wrote: Hi I have installed Ubuntu 10.04 on my lenova. Tried

[Rails] Re: [ANN] Rails 3.0.5 has been released!

2011-02-26 Thread botp
On Sun, Feb 27, 2011 at 10:34 AM, Aaron Patterson aa...@tenderlovemaking.com wrote: # Rails 3.0.5 has been released! maybe a trivial err, but i get, . Installing ri documentation for rails-3.0.5... file 'lib' not found reinstalling rails get the same result. this my first hitch on a rails

[Rails] Re: [ANN] Rails 3.0.5 has been released!

2011-02-26 Thread botp
On Sun, Feb 27, 2011 at 10:51 AM, botp botp...@gmail.com wrote: file 'lib' not found hm, possibly ri/rdoc-related since i get no err if i do $ sudo gem install rails --no-ri --no-rdoc thanks -botp -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Installing ROR on ubuntu 10.04

2011-02-26 Thread radhames brito
Please read a bit about rvm and try using that instead. http://railscasts.com/episodes/200-rails-3-beta-and-rvm -- 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] attrs_accessible.

2011-02-26 Thread radhames brito
it can be done like this http://railscasts.com/episodes/237-dynamic-attr-accessible -- 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] Carrierwave vs paperclip vs attachment_fu ??

2011-02-26 Thread Jaz
I need to upload not only images but also other files(excel, pdf's), I would like to setup custom validations for the specific file uploaded(size, format) and I am using rails 3 Any recommendations would be greatly appreciated. Thanks -- You received this message because you are subscribed to

[Rails] Re: Carrierwave vs paperclip vs attachment_fu ??

2011-02-26 Thread Karthikeyan
Go on with carrier wave. According to Rails cast it works perfectly on Rails 3. See: http://railscasts.com/episodes/253-carrierwave-file-uploads On Feb 27, 9:10 am, Jaz jazminschroe...@gmail.com wrote: I need to upload not only images but also other files(excel, pdf's), I would like to setup

[Rails] Re: Installing ROR on ubuntu 10.04

2011-02-26 Thread Karthikeyan
Is there any advantage using rvm? On Feb 27, 9:03 am, radhames brito rbri...@gmail.com wrote: Please read a bit about rvm and try using that instead. http://railscasts.com/episodes/200-rails-3-beta-and-rvm -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Plugin problem in heroku

2011-02-26 Thread Karthikeyan
Hello Ror, I have a problem with heroku. I uploaded a sample app and it worked all fine. Then I installed two plugin. One is will_pagenate and recaptcha. When I pushed my new git commit to heroku, it said the app got crashed. Doesn't heroku support plugins? -- You received this message because

[Rails] Re: What's the best practice to protect rails code in a small company?

2011-02-26 Thread Karthikeyan
Have you people herd of murphys law? Treat your employees well. That will do. -- 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

Re: [Rails] Re: Installing ROR on ubuntu 10.04

2011-02-26 Thread Jazmin
Yes, If you work on multiple projects you might need to use different versions of ruby and or rails, rvm is a great tool to handle this. Use pik for Windows. On Sun, Feb 27, 2011 at 12:14 AM, Karthikeyan mindas...@gmail.com wrote: Is there any advantage using rvm? On Feb 27, 9:03 am,

Re: [Rails] Rails 3.0 App Deployment

2011-02-26 Thread Tsega
Anyone? -- 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...@googlegroups.com. For more options,

[Rails] Can I merge Korean translation version to Info/docrails without any permission?

2011-02-26 Thread Sangmin Ryu
Hello everyone, Because I don't know communication channel to lifo/docrails, I ask about permissions for that repository. Recently I and friends started to translate rails guide for Korean version. Maybe, I expect to finish all current rails guides translating in 2 months, and then we'll