I am using skydrive gem in my rails application . If there any function wherein I can find with all the folder names like in rails we have find_all_by.
I am following http://www.rubydoc.info/gems/skydrive/1.2.0/Skydrive link
There does not seem to by an implementation of a search / find method in the gem directly. But I believe you could add it yourself into it through the GET request with search parameter of the REST API of OneDrive (former SkyDrive) https://dev.onedrive.com/items/search.htm.
Related
I am looking forward to active job for active record for rails 4. I search related to it. I found gem 'delayed_job_active_record' . But this supports Rails 3+.
In that I want to run the job everyday at some specific time to check the due date. If due date reached, before some particular period Want to send alert message/mail. And I am using devise for authentication.
And also I see the gem 'devise-async-activejob'. Is this affect my authentication system? Which gem can I use for this scenario without affecting my existing features. Suggest any Guide or documentation or sample.
Thanks.
Set the queue_adapter in config/application.rb
config.active_job.queue_adapter = :delayed_job
See the rails guide for more details.
See
http://edgeguides.rubyonrails.org/active_job_basics.html
https://blog.codeship.com/how-to-use-rails-active-job/
I'm transforming a Rails application (say appA) into engine so that I can hook it into another Rails app (say appB). However appA must run as a Rails app solely as well. That's because a customer can buy
appA or
appB with appA. There is no option of buying only appB.
Following rails oficial guide I made (among others) following changes:
Changed Rails.application.routes.draw to ActionPlan::Engine.routes.draw in routes.rb.
Created lib/action_plan/engine.rb with content shown below:
module ActionPlan
class Engine < ::Rails::Engine
isolate_namespace ActionPlan
end
end
Now when I run rails s I get /action_plan/config/routes.rb:1:in '<top (required)>': uninitialized constant ActionPlan::Engine (NameError).
I guess I should initialize ActionPlan::Engine in application.rb file somehow but I don't know how neither whether it's the way to go.
So is it possible to build an app/engine in rails such as appA? If it is, how can I overcome that problem?
After some researching and talking to some friends, I found out that it's not possible to do such a think with rails, but it's possible you to create another rails app (say appC) and use it only to run your engine, i.e appC is a silly rails app used only to make it possible to run your engine.
I need to login my visitors by active directory in Rails 4.
How to start session in Ruby on Rails 4 using Active Directory?
I have used these gems:
devise
devise_ldap_authenticatable
Take care with your base configuration, it was my complication
I am working on a Rails project to build an E-commerce website. I am using Shoppe gem. I refer Tryshoppe website.
As shoppe gem mounts an Admin interface for us but as per my requirements I want to customize it. I am also interested in changing the layout of admin interface.
For example, We can generate views in Device gem and customize it.
Can we generate views and mailer templates to override the default template of Shoppe gem?
To my knowledge the only way would be to clone the gem repo to your github and edit the gemfile as needed. Then add the gem to your app but link it to your github repo for that gem.
This would basically translate to:
gem 'shoppe', :git => 'git://github.com/<username>/shoppe.git'
There is overriding decorators exist in Rails also for such cases:
http://guides.rubyonrails.org/engines.html#improving-engine-functionality
I am using wysihtml5 gem (https://github.com/stefanoverna/activeadmin-wysihtml5). It also uses activeadmin-dragonfly gem. Currently, it stores images under public folder. I am using rails 4. I need to know a way to change this path.