[Rails] Rails 2.3 Issue with bootstrap radiant CMS

2014-07-10 Thread M,Gopi M.gopinath
Hi, while i doing rake production db:bootstrap in Rails 2.3 for radiant cms I getting the following error, can anyone help me to sort out this problem. (in /home/x/Projects/XXX) Extensions cannot be used until Radiant migrations are up to date. rake aborted! uninitialized

[Rails] Re: The user index does not display delete links

2014-07-10 Thread Javix
On Wednesday, July 9, 2014 7:02:09 AM UTC+2, Ruby-Forum.com User wrote: I am using Ruby 2.0.0 and Rails 4.0.5. I follow Ruby on Rails tutorial by Michael Hartl. I am trying to implement **The destroy action** (section 9.4.2). Administrative users should see delete link BUT When i

[Rails] how to achieve in rails way.?

2014-07-10 Thread Darshan d
Hi all, i am a new rubiest. Started exploring rails recently. Here is my problem i am trying to get objects from my custom database and render them as json objects. This is how tried. In my controller. def near begin @lat = params[:lat] @lon = params[:lon]

[Rails] Client Side Validation gem - adding custom validator for select

2014-07-10 Thread Mayur Khatri
Dear All, I have two select tags. Start time and end time select tag. I am using client side validation gem in the form. I need to check if the start time select tag has value less than the end time select tag, using a custom validator. Is there a way to achieve this in the

Re: [Rails] how to achieve in rails way.?

2014-07-10 Thread Colin Law
On 9 July 2014 08:06, Darshan d darshan...@onze.in wrote: Hi all, i am a new rubiest. Started exploring rails recently. In that case work right through a good tutorial such as railsturial.org (which is free to use online) which will show you the basics of Rails. Colin -- You received this

[Rails] paper clip aws s3

2014-07-10 Thread Anu Sebastian
in application path public/users/user_list.csv is present. I need to upload this CSV file to s3 . Now, in S3 it is storing as text file, not as CSV. I am Using paperclip. file_to_s3 = File.open(public/users/user_list.csv) CsvFileStorage.create!(csv = file_to_s3) return report_name How can I read

Re: [Rails] paper clip aws s3

2014-07-10 Thread Colin Law
On 10 July 2014 10:38, Anu Sebastian li...@ruby-forum.com wrote: in application path public/users/user_list.csv is present. I need to upload this CSV file to s3 . Now, in S3 it is storing as text file, not as CSV. I am Using paperclip. file_to_s3 = File.open(public/users/user_list.csv)

[Rails] Re: The user index does not display delete links

2014-07-10 Thread Jaimin Pandya
Serguei Cambour wrote in post #1152018: On Wednesday, July 9, 2014 7:02:09 AM UTC+2, Ruby-Forum.com User wrote: When i sign in, delete link is not appear. I can't able to solve this //= require_tree . /li -- Posted via http://www.ruby-forum.com/. How do you sign in , - as admin or not ?

[Rails] Re: The user index does not display delete links

2014-07-10 Thread Jaimin Pandya
dasibre wrote in post #1151967: If your tests are passing, try some debugging. Check your current_user helper method make sure its working the way its supposed to work. I would also check sessions to make sure the current user is available. I am providing sessions_helper: module

[Rails] Re: The user index does not display delete links

2014-07-10 Thread Javix
On Wednesday, July 9, 2014 7:02:09 AM UTC+2, Ruby-Forum.com User wrote: I am using Ruby 2.0.0 and Rails 4.0.5. I follow Ruby on Rails tutorial by Michael Hartl. I am trying to implement **The destroy action** (section 9.4.2). Administrative users should see delete link BUT When i

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

2014-07-10 Thread Anu Sebastian
s3 url that expires after 1 hr here is code file_name_in_s3 = topic_alerts/+report_name s3_config = YAML.load_file(#{Rails.root}/config/s3.yml) s3 = AWS::S3.new(:access_key_id = s3_config['development']['access_key_id'],:secret_access_key = s3_config['development']['secret_access_key']) bucket =

[Rails] Re: The user index does not display delete links

2014-07-10 Thread Jaimin Pandya
The 'delete' link will be displayed ONLY if the current user (i.e. the user which is actually signe in) is ADMIN: if current_user.admin? So check the user credentials you use to sign in, - it is as easy as it is. Yes, It's as easy as it is after you giving me direction. I solved this

[Rails] STI where inheritance column values are not the same as the name of the class

2014-07-10 Thread Eric Roberts
I recently tried to retrofit STI on a database table that had already existed for a while. Here's a basic outline of the scenario. 1. I had a class 'Code' and a database table 'codes'. 2. 'Code' had an attribute 'units', which could be either '$' or '%' 3. I wanted the STI classes to

[Rails] Re: Heroku vs. local WEBrick: How could be this error be undetected?

2014-07-10 Thread Ronald Fischer
It's 2.1.1p76 in both cases. -- 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 this group and stop receiving emails from it, send an email to

[Rails] Re: counting the result of a join (SOLVED)

2014-07-10 Thread Ronald Fischer
The solution is found here: http://stackoverflow.com/questions/24607428/rubyonrails-counting-the-result-of-a-join Basically, I need to specify in my :dicts model, that there is an association to :cards # in class Dict: has_many :idioms, through: :cards After this, I can do:

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

2014-07-10 Thread Anu Sebastian
pls help me to find a better soln -- 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 this group and stop receiving emails from it, send an email to