Filepicker.io rails app with multiple files - ruby-on-rails-3

I can't find any examples or documentation for how to handle multiple file uploads with my rails 3.2 application and filepicker.io. Can anyone assist?

It was just recently added, see https://github.com/Filepicker/filepicker-rails/pull/35

Related

Rails 4 and Locomotive cms workarounds?

I want to try Locomotive CMS, while I was installing it, I realised that only runs with rails 3+ version no 4.
As I am currently working in a couple of other apps in rails and I am pretty new to it, I was wondering if is there any way to run one version of rails for locomotive and another one(rails 4) for my other apps. If so how could it be done?
Thanks in advance.
C
You definetely want to start using rvm. It will help you not only separate your gems for different projects, but also separate and manage your Ruby versions. Definetely a great tool.

Migrating from Rails 2.3 to 3.2 over a long period

I'm working on a small project that has been allocated a small amount of time to maintain and update features. This project is on Rails 2.3.
I'd like to move it to Rails 3.2 but there is little time allocated to this so I would like to do it over a slow gradual process.
I'm thinking that it might be worth moving over to Rails 3.2 on a section-by-section basis.
This would mean that I would create a second application that looks the same as the first one but is located somewhere different and accessed from a different subdomain.
Is this feasible if I just update the Rails 2.3 routes file for certain routes to go to the new application?
Has anyone done this before?
It depends on many parameters but among these the most relevant are :
Does your Rails 2 project already use Bundler ? If not, migrate to it before the migration.
Do you use gems which are known not to work on Rails 3 ?
Does your project already use Rails XSS plugin (https://github.com/rails/rails_xss) ? If not, migrate to it before the migration.
After that, the migration will be easier.
For the migration, I recommend that you create a brand new Rails application using "rails new" command, so that all the boot files will be good. Then migrate the initializers/config files and "app" folder...
Good luck.

Localization files in app bundle

I have localization with 3 languages. Everything was working; then I wanted to change something in localization files.
My changes didn't have any effect, and I can't figure out the reason.
The big idea that it worked and still is finding old resources.
This is working for me when I want to print the bundle of localization file:
PATH/MyFirsy.app/en-LT.lproj> (not yet loaded)
My steps:
Getting your resource files ready for localization
Collecting all the texts used in the application in resource files
Translating the resource files
Integrating the resource files back in the application
Maybe someone who had this problem could help me.
for localization to be in affect, you also need to change your simulator's/device's language. you can check the same in your case.

Viewing uploaded documents(pdf, .doc, .xls, etc.)

I have a simple program were users can create, show and edit projects. One of the features of the projects is file upload. I have experimented with several different methods of uploading the files including carrierwave and paperclip. The problem I am having is that I need users to be able to view the files that are uploaded. Ex: open pdfs or excel spreadsheets that other user have uploaded to that project. I am new to rails and have no idea how to do this. All i can find are tutorials on how to upload and show pictures. Does anyone know how I can do this? I have looked at send_data and send_file but cannot figure out if I should use these or how to implement them. Thanks in advance
I'm using rails 3.0.10 and ruby 1.8.7 on an Ubuntu server

Is there any working CMS extension for Spree 0.40.x (Rails 3)?

I've been trying to add a basic CMS to my new Spree 0.40.x but I'm no getting any success. Documentation seems bare empty.
I've tried every extension listed here but I couldn't install some of them, others I did installed them, but seems they're using rails 2 deprecated methods.
Does any of you have been able to add a CMS to Spree under Rails 3? I don't mind if i need to use an older version of Spree, I just need a basic CMS.
Thank you
Why exactly will you need CMS?
If you require it to create static pages with WYSWYG editor then you can use spree-static-content extension https://github.com/spree/spree_static_content