User Profile

Collapse

Profile Sidebar

Collapse
divyakgowda
divyakgowda
Last Activity: Jun 15 '09, 09:30 AM
Joined: Oct 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • divyakgowda
    replied to Renaming Zip File
    in Ruby
    I get the exception error as "File not in a format."
    See more | Go to post

    Leave a comment:


  • divyakgowda
    started a topic Renaming Zip File
    in Ruby

    Renaming Zip File

    Hello everyone,

    In my application i am uploading a Zip file called 'registration.z ip' .For the first time the file is uploading with no issues.Again if i rename the same 'test1.zip' file to 'test2.zip' and try to upload, its throwing an exception error.But that .zip file is valid and can be unzipped.I am using rubyzip gem to upload zip file.

    I want to know whether its an error or not and how to handle this problem.
    See more | Go to post

  • Check whether the unzip folder contains .swf files



    Thanks.I can get all the filename inside the directory by using Dir[path].But can you tell me please how can i read all the filenames inside and compare it with filename i want and display an error message if it is not present in the directory.Its urgent....
    See more | Go to post

    Leave a comment:


  • divyakgowda
    started a topic Validation of excel file in Ruby
    in Ruby

    Validation of excel file in Ruby

    Hello all,
    My problem is, for uploading an excel file(.xls file), if i change .txt or any other format file into .xls file, i should be able to handle this and display an error message saying "file selected is not a format" in ruby.Or is there any way that can be done through javascript.Plea se help me.Its urgent.

    Thanks,
    amulyab
    See more | Go to post

  • divyakgowda
    started a topic Check Box Problem

    Check Box Problem

    Hello all,
    My problem,i have written a javascript to check whether the checkboxes are checked or not.If its not checked,i will get an alert message,if i checked then say it is checked.This condition is working for more than one data.If there is only one data and if i check that also,i am gettin an alert message and says its not checked.Please help me to solve this.

    Javascript am using is,

    Code:
    	var total=""
    ...
    See more | Go to post
    Last edited by Dormilich; Apr 6 '09, 12:34 PM. Reason: added [code] tags

  • Check whether the unzip folder contains .swf files

    Hello everyone,
    My problem is, i am uploading a zipped file and extracting the contents and saving in a directory.How can i check whether the uploading zipped file contains only .swf files inside, before or after extraction.Plea se help how can i do this? Its urgent.


    Thanks,
    amulyab
    See more | Go to post

  • divyakgowda
    replied to Unzipping a file on upload in Ruby
    in Ruby
    Re: Unzipping a file on upload in Ruby

    Hello all,
    I got a method for uploading a zipped file and extract its folder and save in a directory.


    Code:
     Zip::ZipFile.open(file_path) { |zip_file|
         zip_file.each { |f|
         f_path=File.join("destination_path", f.name)
         FileUtils.mkdir_p(File.dirname(f_path))
         zip_file.extract(f, f_path) unless File.exist?(f_path)
    ...
    See more | Go to post
    Last edited by eWish; Apr 28 '09, 12:58 PM. Reason: Please use the code tags

    Leave a comment:


  • divyakgowda
    started a topic Unzipping a file on upload in Ruby
    in Ruby

    Unzipping a file on upload in Ruby

    Hello everyone,
    I am uploading a zipped file where in which i need the unzipped file should get extracted to some target directory after uploading. I tried by using rubyzip gem,but its not working.Please help me how can i do this.


    Regards,
    amulyab
    See more | Go to post

  • divyakgowda
    started a topic Send email in Rails 2.0
    in Ruby

    Send email in Rails 2.0

    Hello,
    I am using Rails 2.0 in which i want to send email.Where do i configure the gmail settings?If i add the settings in environment.rb file as older version,the application is not running.I am using tlsmail gem.Please help me to solve this.I need this setting to be added in rails 2.0
    Code:
    require 'tlsmail'
    Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
    
    ActionMailer::Base.delivery_method = :smtp
    ActionMailer::Base.server_settings
    ...
    See more | Go to post
    Last edited by eWish; Jan 28 '09, 02:57 AM. Reason: Please use the code tags

  • divyakgowda
    started a topic Excel read in ruby on rails
    in Ruby

    Excel read in ruby on rails

    Hello everyone,
    I want to read the excel file and store the data into Mysql.I have installed the gem parseexcel.But its not working and i am getting the error as like below

    ActionControlle r::InvalidAuthe nticityToken
    Request

    Parameters:
    {"sheet"=>"0 ", "afile"=>{"file _data"=>#<File: C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/CGI.3336.0>}}

    ...
    See more | Go to post

  • divyakgowda
    started a topic Ruby Reports(CSV)
    in Ruby

    Ruby Reports(CSV)

    Hello all,
    I have to generate report in CSV ruby on rails.But my problem is to add headers and footers to that CSV.I have used gem called "acts_as_report able".Please help me.Its urgent.

    Thanks
    See more | Go to post

  • No.I think i was not clear about my question.In tmp/session folder,
    ruby_sess.7e406 b1b7791bd09
    ruby_sess.10645 ae490aa2726..
    This kind of many files get created.I want clear all the files regularly.I should delete all the files in that folder.How can i do this?Hope i am clear this time.

    Thanks...
    See more | Go to post

    Leave a comment:


  • divyakgowda
    started a topic Pagination

    Pagination

    Hello,
    I have generated ruby reports for my application.For html display of report,i have to use next,previous links for navigation.I need to have 10 records per page.And when click on next link,i should be able to retrieve the next 10 records.For retreiving records, i have used find_by_sql query.By this i can limit the records,but displaying other records in next page,i am not able to do.
    How can i do this.Please help me.Its urgent....
    See more | Go to post

  • divyakgowda
    started a topic Pagination in Ruby on Rails
    in Ruby

    Pagination in Ruby on Rails

    Hello,
    I have generated ruby reports for my application.For html display of report,i have to use next,previous links for navigation.I need to have 10 records per page.And when click on next link,i should be able to retrieve the next 10 records.For retreiving records, i have used find_by_sql query.By this i can limit the records,but displaying other records in next page,i am not able to do.
    How can i do this.Please help me.Its...
    See more | Go to post

  • Deleting all tmp files (session,cookies,cache) in ruby

    Hello,
    For my ruby on rails application,i need to delete all the temporary files created in /tmp folder.If those files increases, at some point in time, my application stops working unless i delete all session files manually.Is there any way, so that i can keep on deleting those files from the folder automatically or somehow.Please help if anyone knows.Its urgent.

    Thanks in advance
    See more | Go to post

  • divyakgowda
    replied to Ruby Reports
    in Ruby
    Thanks for the reply. Even that is not working for me.
    We can also use Author.report_t able_by_sql("se lect .....")...
    See more | Go to post

    Leave a comment:


  • divyakgowda
    started a topic Ruby Reports
    in Ruby

    Ruby Reports

    Hello,
    I am referring the link below for creating the ruby reports.For creation of report_table, query is used for selecting only particular table.If i query the report_table, am getting error as "undefined method slice! for Hash".

    Ex:
    1. Author.report_t able(:all, :only => ['id','name'])
    If i use like this.I am getting error.
    2. Author.report_t able
    If i use like this,its working...
    See more | Go to post

  • divyakgowda
    started a topic Query on observe form and rjs
    in Ruby

    Query on observe form and rjs

    I have 3 fields project,type,pr ogram .Program should be enable only if
    type=1(some predef value)but program values should be based on project
    values.I tried to use observe form and rjs.I could not find the
    solution plz help me.......
    See more | Go to post

  • divyakgowda
    started a topic Query on Observe field
    in Ruby

    Query on Observe field

    Take one example where there will be 2 combo boxes. One for the project and another one for types. I have used observe field for types combo box which observes project field and updates div of types. Now i need to observe types field using observe field(should consider both project and types values) and update a div without using any submit button.How can i do this. Please help me out.
    See more | Go to post
No activity results to display
Show More
Working...