similar to: Any file upload and strong parameters examples

Displaying 20 results from an estimated 30000 matches similar to: "Any file upload and strong parameters examples"

2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my mistakes, this time I''m trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_controller.rb:28:in `new''
2013 Nov 29
4
Capistarno deploy each time ckeditor assets removed.
Hi all, I have Rails 4.0.0 app, After capistrano deploy my ckeditor_assets are being removed. Could not symlink to shared/ckeditor_assets folder. I have followed this step : namespace :uploads do > > desc <<-EOD > Creates the upload folders unless they exist > and sets the proper upload permissions. > EOD > task :setup,
2014 Mar 25
0
Looking for some glue between Strong Parameters and CanCan
Hello Rails World, does anybody know a good solution for Strong Parameters in a Rails app authorized by Cancan (or a similar authorization gem)? def user_params if current_user.admin? params.require(:user).permit! else params.require(:user).permit(:password, :password_confirmation) end end Now I want to do this the "Cancan way". My first idea looks strange to me: def
2013 Dec 06
1
Accessing internal read-only parameters
Hi, I''d like to access read-only parameter package::status in my manifest. The only reference about RO-parameters usage I found is some irrelevant post in puppet-dev group (https://groups.google.com/d/msg/puppet-dev/XiEexgGGwHc/P1_s7OQo59kJ) from Y2008: <citate> And as "definition attributes" they would provide a nice way of accessing internal read-only parameters
2013 Jul 22
0
rails is not to logging controller, action, parameters, complection time, etc in development mode
For this one particular project, rails is not to logging controller, action, parameters, complection time, etc in development mode. And I am not sure why. When I check in the console the log level I notice: Rails.logger.level => 0 So I am not sure why it doesn''t log the information it usually does during a request. -- You received this message because you are subscribed to
2013 Oct 04
8
is there any way to convert .xlsx to .xls
Hello Guys, does anybody know if there''s anyway to upload a .xlsx file and then convert it to .xls file for later processing? i''d like to use spreadsheet to write a new xls file but it doesn''t support xlsx and the file is only importable with that format sadly. I saw roo but I don''t know if there''s a direct way to do it. -- You received this
2013 Jun 06
1
Introducing MailJack: autogenerate querystring parameters that are appended to links in your emails
Hey All, I just wrote a nifty gem and wanted to share(its one of my first). Wondering if anyone would be so kind as to tell me what they think and/or code review it. MailJack - its like LoJack but for the links in your emails. The problem this solves is the ability to track click throughs in emails. https://github.com/synth/mail_jack Basically, you specify what mailers you want to track
2013 Jul 13
4
?include binstubs in version control
I am using rbenv. Just a quick question: Is it good practice to include binstubs in version control? I have looked at the binstubs created; they look pretty harmless. -- 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
2014 Feb 18
0
How to Test Multimodel Paperclip attachments?
I'm using Rspec and FactoryGirl to create specs for multimodel paperclip attachments. From searching other questions, it seems like a single image attachment is more common. Car.rb class Car < ActiveRecord::Base has_many :uploads, dependent: :destroy validates :uploads, presence: { message: 'You must upload at least one image' }
2013 Aug 26
2
[JOBS] Ruby on Rails - Freelancing
Hi, Looking an expert in Ruby on Rails for maintaining & implementing new concepts and optimization of our website. For more details write back. Regards, Arun M Thrillophilia.com <http://www.thrillophilia.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
2013 Sep 05
1
hw to create binary tree structure in rails
hello friends, i want to create a binary tree structure in railsapps.it there any gem or any other technique. -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to
2013 Nov 28
1
Cocaine::CommandNotFoundError while using ffmpeg
Hi, I am using paperclip-ffmpeg gem to create thumbnail for video rails 3.2.12 while uploading following error occurs [paperclip] [ffmpeg] ffprobe "/tmp/Wildlife_512kb20131128-2794-191vy86.mp4" 2>&1 Completed 500 Internal Server Error in 918ms Cocaine::CommandNotFoundError (Cocaine::CommandNotFoundError): please provide me solution -- You received this message
2013 Nov 24
2
Saying "Hello world" with Ruby on Rails (Tutorial)
http://arubystory.blogspot.com/2013/11/tutorial-saying-hello-world-with-ruby.html -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to
2013 Nov 21
2
#5 Getting Up and Running
http://guides.rubyonrails.org/getting_started.html#getting-up-and-running create a controller called PostsController. You can do this by running this command: $ rails g controller posts That results in an error. >rails g controller posts Usage: rails new APP_PATH [options] Options: What am I missing? -- You received this message because you are subscribed to the Google Groups
2013 Aug 28
4
Deploying Rails 4 to VPS
Hello! I now have a VPS and I''ve been playing with it a bit. It is running Debian 7.0. I''m wondering how to set up my environment to deploy a Rails 4 app. I''d like to use Nginx with Passenger, Capistrano and RVM. Any good starting points? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2013 Nov 10
3
accepts_nested_attributes_for how, example
I have following tables with following models: users(id, role_id) *has_many :entries* categories(id, category_name) *has_many :entries* entries(id, category_id, user_id) *belongs_to :user, belongs_to :category, has_one :storage* storages(id, title, content, entry_id)* belongs_to :entry*, *has_one :vote* votes(id, count, storage_id) *belongs_to :storage* Now,
2013 Oct 23
2
how is mongoid syntax implemented ?
In mongoid, a ORM mapped database object is like below. The part "type: String" seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ? class Step include Mongoid::Document field :Label, type: String field :Descript, type: String field :ErrorText, type: String embedded_in :step_data end -- You received this message
2013 Jul 20
2
How to use twitter bootstrap
Hi, I have a Ruby 1.9.3p194 and Rails 4.0.0, Can i used twitter-bootstrap for designing with these version, Or it is compatible with these version, also tell me how to make rails application using twitter bootstrap. Thanks..! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop
2013 Jun 05
1
Link_to image_tag popup
Hello All, How can I add a popup in link_to image_tag? I am trying as :- <%= link_to image_tag(@user.avatar.url(:small)), ''/users/edit'', :popup=>[''original_image'', ''height=700,width=900''] %> It goes to the edit page. But it doesn''t opens popup. Is this the correct way to call a popup? How can I achieve this? Thanks,
2013 Jun 26
2
having isues with creating a ajax call in my simple rails application ,
hi all , having isues with creating a ajax call in my simple rails application , can any body be available for some time to help on mail or chat ?? -- 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