Re: [Rails] Signature/Expires/Access Key ID appearing in URL Params aws paperclip

2014-07-11 Thread Walter Lee Davis
On Jul 11, 2014, at 12:05 AM, Anu Sebastian wrote: pls help me to find a better soln You're kind of stuck with what S3 allows you to do here. You can have one of the following: 1. The ugly URL and private files. 2. The plain URL and public files (the URL doesn't expire, in other words). 3.

[Rails] Tricky Inheritence

2014-07-11 Thread Masc Prem
I have created few models which are shown below. Base models are TransactionType and TransactionItem ExpenseType and IncomeType derives from TransactionType. Expense and Income derives from TransactionItem. class TransactionType ActiveRecord::Base scope :expense_types, - { where(tran_type:

[Rails] Experienced Developer, Avail. half time mpw

2014-07-11 Thread Steve
Hello everyone, I'd like to find a half-time rails development project that starts right away! I've just finished a very long-term contract, but wanting to work half-time right now (half time on my own project). I'm looking for a good group of people to work with, fun project, ideally something

[Rails] Refactor Link Table relationsip

2014-07-11 Thread Jan Yo
I need some code refactored as it is very ugly. memberships = customer.companies.collect(:name).sort().join(',') for membership in customer.memberships membership.membership_roles.each do |membership_role| cust_roles membership_role.role.name + , end end

Re: [Rails] Refactor Link Table relationsip

2014-07-11 Thread Colin Law
On 11 July 2014 22:26, Jan Yo li...@ruby-forum.com wrote: I need some code refactored as it is very ugly. memberships = customer.companies.collect(:name).sort().join(',') for membership in customer.memberships membership.membership_roles.each do |membership_role|

[Rails] Re: Refactor Link Table relationsip

2014-07-11 Thread Jan Yo
Colin Law wrote in post #1152183: On 11 July 2014 22:26, Jan Yo li...@ruby-forum.com wrote: Here's the active record relation: customer has many memberships membership_role belongs to membership and role (link table) Is there a more compact, cleaner way to write this? Specify membership

[Rails] trying to figure out an installation bug

2014-07-11 Thread Trevor Man
Hi. I am trying to figure out how to install and run Ruby on Rails from the ruby-lang site. I installed the 1.9.3 version. It tells me to install it to C:\oss\ruby I am supposed to unzip Koans and go to advanced settings and go to variables. I am supposed to insert a new setting, but it does