[Rails] Errno::ENOENT in Home#index

2013-06-20 Thread Maddy
config.assets.enabled = true = javascript_include_tag "application", :cache => true Application boots up correctly by 'rails server' command. when i go to homepage, i get the following error. No such file or directory - Asset file not found at '/home/ramiz/projects/hq_channel/public/var/lib

[Rails] Facebook authentication

2013-05-21 Thread Maddy
Hi Folks, Am using "*rails gem koala*" for facebook authentication. It works fine. But when my facebook account logged out it doesn't works in my application. I have user access_token and user_id and how can i access user photos using their access_token? Please advice. Thank you. -- You re

[Rails] Instagram Redirect error

2013-05-14 Thread Maddy
Hi Folks, In just integrate instagram to my app. I got an error while redirect from instagram. {"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"} Please advise. Thank you -- You received this message because yo

[Rails] Re: How to integrate Flickr with Rails

2013-05-13 Thread Maddy
Hey guys Good Noon, Do you integrate Flick with Rails do you have any tutorials ? Please Advise. -- 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 rub

[Rails] Using koala get facebook albums photos

2013-05-08 Thread Maddy
Hi Folks, Good day, I need to display my facebook album photos in my application. I used *Koala *for facebook API. I used this query for getting my album photos, *current_user.facebook.get_connection("me","albums")* by using this i can get only the albums details. *"I need my photos which i up

[Rails] Search form AND condition - Not working

2013-05-06 Thread Maddy
Hi Folks, My search fields, Firstname* Lastname* MI - Middle initial State* ID Birthday when people will search John Bolton in any state for example AL (Alabama), all John Bolton names in only AL will show up. So if there are 3 John Bolton with different middle MIs, they will show, for example

[Rails] Truncate text

2013-02-05 Thread Maddy
Hi Folks, Good evening, I used the code which i print below, Yes i got the result , but i need the result like this "TruncateHtml is jus(continued)" some_html = 'http://whatever";>TruncateHtml is just like the vanilla truncate rails helper , TruncateHtml is just like the vanilla truncat

[Rails] Rails upload video using paperclip

2013-02-01 Thread Maddy
Hi Folks, Good noon, I want to upload a video using paperclip and also stored in my assets. Please advice. Thank You. -- 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, se

[Rails] embed .mov video in html page and make it play any video file in local drive

2013-01-31 Thread Maddy
-- 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@goog

[Rails] Rails Play video

2013-01-31 Thread Maddy
Hi Folks, I want play videos, the src file should i get from assets/videos. I just created one folder in my assets like videos and placed one .mov file. In my view, Your browser does not support the video tag. But its not working. Please advice. -- You received this message because y

[Rails] Download image after page load

2013-01-28 Thread Maddy
Hi Folks, Good day, *Am using image slider with click event using jquery. there are nearly 30 image.* * * *When i opened the site, the 30 images are downloaded and then the site opens. So that the page speed is very slow. * * * *My requirement is, The images are download only after site site op

[Rails] Find Current Month ?

2013-01-24 Thread Maddy
HI Folks, How to find current month? and How to collect current month data from our database? Please advice. Thank You. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.

[Rails] Download XML

2013-01-23 Thread Maddy
Hi Folks, Good Noon, I want to download XML file, I used in my index, %a{:download => "weborder", :href => "/orders.xml?q=a10ie5Vb", :style => "float: left;padding: 0px;background:none;"} In my controller, def index @order = Order.find_by_cart_id(current_cart.id) if params[:q].pre

[Rails] Collect value

2013-01-20 Thread Maddy
Hi Everyone, Good Day, a=[ 'casual','sick','casual','sick','casual','sick','casual','sick' ] I need to collect casual's count and sick's count like, Caual :4 Sick :4 Thank you, -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] Disable back button of browser

2012-12-20 Thread Maddy
Hi Folks, Good Day, *How to disable back button of browser??* Please advise! Thank You. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this g

[Rails] Session

2012-12-19 Thread Maddy
*Hi Folks,* * * *Good Day to all,* * * *I want to store the session id in my database, because once i opened my site i should saved the session id in my database.This id should not be incremented till my site close.* * * *Once i closed and reopened the site, the new id should be generate.* * * *P

[Rails] Finding how many times was my website visited?

2012-12-18 Thread Maddy
Hi Everyone, Good Day! I wanna to add to my blog a counter for displaying, how many times was my website visited. I would like to solve it through ruby (not GA or something like that). Is available any gem that do this task (also with checking IP address,the time of latest visited and visited

[Rails] Finding the visitors details of my website

2012-12-18 Thread Maddy
Hi Folks, Good Day to all! I have one urgent task in my project. Have to displays the visitors count, who are all visiting my website. Eg: If anyone visited my site in Canada, in my admin panel i should displays the details which i mentioned below. It shoule be displayed like thi

[Rails] Track the number of users who are all visiting the web application

2012-12-18 Thread Maddy
Hi All, In my application i want to track the number of users who are all visiting the web application. Is there any gem is available to track the number of users visiting the web application? Please let me know how can i implement this feature. Thanks Ashok -- You received this message bec

[Rails] Add expire header for images stored in amazon s3

2012-12-17 Thread Maddy
Hi everyone Good Afternoon, I done adding expire header by put the following code into my product model. :s3_headers => { 'Cache-Control' => 'max-age=315576000', 'Expires' => 10.years.from_now.httpdate }, But its work only while i add new product and image. Already i have 100 of pro

[Rails] Rails seo friendly urls

2012-11-28 Thread Maddy
Hi Folks, This is my sample url: *http://.com/product_details? category_id=produce&product_id=fresh-georgia-peaches--17 * The highlighted (red) things are my params. How can i hide those

[Rails] CKeditor linked image problem

2012-11-23 Thread Maddy
Hi Folks Good Morning, *How to remove the Border **around the linked image in CKeditor .?? * *Please advice.* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To uns

[Rails] Temperature display

2012-10-13 Thread Maddy
HI folks, Good evening, Is the possible to display current weather temperature ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, s

[Rails] Error

2012-10-09 Thread Maddy
Hi folks, Good Evening, After pushed my project into heroku server, i got an errror ActiveRecord::StatementInvalid (PG::Error: ERROR: relation "homes" does not exist Please look the a

[Rails] Change my timezone

2012-10-09 Thread Maddy
Hi folks, Good evening, How can I changed my timezone default( config.time_zone = 'Central Time (US & Canada)' ) into Sweden timezone.? Please advise. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] Find the largest value of given 3 values

2012-09-17 Thread Maddy
Hi folks, Good day! *I want to find the largest value of given 3 values.* *Please suggest me,the simple ways of finding the largest value.* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrai

[Rails] Array value to get except first two values

2012-09-15 Thread Maddy
Hi folks, In an array value i need to find except first two values, example: [1,2,3,4,5,6,7,8 ] in that i need to get values except [1,2]. How can i get it from this array?? please advise -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Generate devise session controller

2012-09-04 Thread Maddy
Hi Folks Good morning, Am new to rails. I used devise in my project ,i need to write some conditions in my session controller.How can i generate devise session controller. I have user.rb model. Steps which i made: 1. Generate rails g controller session 2. Session controller generated 3. Chang

[Rails] Rails Generate Devise::session controller

2012-09-03 Thread Maddy
Hi Folks, Am new to rails. I user devise in my project ,i need to write some conditions in my session controller.How can i generate devise session controller. Devise::SessionsController Please advice.. -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

[Rails] How can i call an image in my model

2012-08-20 Thread Maddy
Hi folks, Am generating table vales as pdf file.I need to call my images in that pdf generated file.. how could i call?? its is my actual image directory "/assets/images/logo.png" it is my model.rd, class PerformancePdf < Prawn::Document def initialize(performance) super(top_margin: 7

[Rails] Paperclip images are not stored in my directory

2012-08-17 Thread Maddy
It is my User.rb model, My images are not stored in my assets directory.. has_attached_file :photo, :styles => { :small => "100x100#", :large => "500x500>", :thumb => "60x60>" }, :url => "/assets/users/:id/:style/:basename.:extension", :path => ":rails_roo

[Rails] Problem in jquery

2012-08-09 Thread Maddy
It is my jquery/ajax coding. it is not not working now. $(document).ready(function() { $(".ac_odd").live('click', function() { alert('odd'); var s_name = $(this).text(); $('.sport-name').val($(this).text()); $('.ac_results').css('display','none'); var sport_id = 22

[Rails] ActionMailer problem

2012-08-09 Thread Maddy
Hi guys! I used action mailer in my project,in that the from ID show always my own ID.I need it show some default ID like.,f...@gmail.com Here my coding, In my set_mailer.rb ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :dom

[Rails] Re: NoMethodError : undefined method `stringify_keys!' for "2":String

2009-09-29 Thread maddy
Hi Fred, Thanks a lot! You were right. It had to be Contact.find. Regards, maddy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to r

[Rails] NoMethodError : undefined method `stringify_keys!' for "2":String

2009-09-25 Thread maddy
t;"bangalo", "country"=>"India", "phone"=>"234122342", "first_name"=>"abc", "last_name"=>"def", "address"=>"weiwq, werwqqq, wer", "state"=>"KA&quo

[Rails] Problem starting in Webrick server

2009-09-17 Thread maddy
missed anything or if more clarification is needed, please let me know. Many Thanks!! Maddy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] Re: NameError: undefined local variable or method `testapp' for main:Object

2009-08-31 Thread maddy
Hi Fred, Thanks for clarification. You're right, I had mixed up things there. Thanks, Maddy On Aug 31, 9:05 pm, Frederick Cheung wrote: > On Aug 31, 3:43 pm, maddy wrote: > > >  Now when I give command (To run the application) "ruby testapp.rb" , > > I get

[Rails] NameError: undefined local variable or method `testapp' for main:Object

2009-08-31 Thread maddy
Hi, I am new to Ruby on Rails. Recently, I downloaded and installed the InstantRails in the D:\ drive of my system. Now I wanted to try some small examples in 'irb', so I created a file "testapp.rb" and in that pasted a code like this: class sample_class