[Rails] Updating an Application

2010-04-30 Thread doug
I have deployed several instances of a Rails application. I am now considering how I might apply application updates to each of the various instances. I would like the updates to be contained in some sort of an archive like a tar archive. There are two types of files to be included in the archiv

[Rails] Re: can i access global cookies from rails?

2010-04-30 Thread dino d.
thanks for the reply. i screwed up. in development mode, i was accessing my localhost, which was storing the cookie under localhost. when i accessed my app from the domain that i registered with facebook, i got access using the regular cookies array. hope this helps someone... thanks again, dino

Re: [Rails] can i access global cookies from rails?

2010-04-30 Thread Philip Hallstrom
hi - i'm trying to integrate facebook authentication into my app. facebook sets a cookie called fbs_ where is your app id. but, i can't figure out how to get my hands on that that cookie inside rails, cookies[] only gives me access to my apps cookies. If the cookie isn't in your doma

[Rails] using in_groups_of to get data to display horizontally

2010-04-30 Thread John Merlino
Hey all, The following has two columns. Each column has a head with a name and then a data cell with a time directly below it. I'm wondering how I can get the time to display next to the name, not below it. - @clock.in_groups_of(2) do |group| %tr.header - group.each do |item|

[Rails] £ sign not printing

2010-04-30 Thread MDM
Over a year ago I posted a question about why my £sign was printing in one of my page and not in another although the code was the same. I went through checking database type, collation etc and changing from Unicode to LatinX etc. in the layout all to no avail. I temporarily solved the problem by u

[Rails] can i access global cookies from rails?

2010-04-30 Thread dino d.
hi - i'm trying to integrate facebook authentication into my app. facebook sets a cookie called fbs_ where is your app id. but, i can't figure out how to get my hands on that that cookie inside rails, cookies[] only gives me access to my apps cookies. thanks for any help, dino -- You

[Rails] controller methods and how I learned to love 'rake routes'

2010-04-30 Thread Fearless Fool
Face it: to the newcomer, Rails routing is strange and mysterious. It took me a while get the hang of it, so I thought I'd share some info (and a couple of handy techniques) for those who are new to Rails. Here, assume we have Users and Reports, and that one User "has many" Reports. Normally, th

[Rails] Re: does any one knows how to setup ror on hostmonster

2010-04-30 Thread nirosh
after the full setup on hostmonster. i got this message when i go to the default route. any idea Not Found The requested URL /home/index was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.14 (

[Rails] fields_for: how many objects can it handle - max string size?

2010-04-30 Thread Kurt
Our app is getting a "string sizes too big" error in an .erb file that is trying to render a large block of checkboxes that represent color attributes that belong_to the product being edited in this view. The code worked fine when we had a small number of colors -- now that the number of colors is

[Rails] Re: undefined method `call' for nil:NilClass

2010-04-30 Thread Sijo k g
Hi > why would I be getting this error after submitting my form? > > NoMethodError in EchantillonsController#create > undefined method `call' for nil:NilClass > Can't say from this what caused error. Please paste in which line error happened and what is there on that line. Just a guess only >

[Rails] Re: Dumping 12,000+ records into seeds.rb?

2010-04-30 Thread Sijo k g
Hi Try this http://github.com/mbleigh/seed-fu It can read from csv. That may help you Sijo -- Posted via http://www.ruby-forum.com/. -- 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] Re: cache logic in js_include_tag and stylesheet_link_tag?

2010-04-30 Thread Sijo k g
Hi Jonathan Read this also. http://maintainable.com/articles/rails_asset_cache If any modification happens to js or css as specified, then before next release you can apply this trick Sijo -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed t

[Rails] Re: How many connection pool should we have for internet facing apps?

2010-04-30 Thread Joe Smith
Frederick Cheung wrote: On Apr 29, 1:57 am, Joshua Partogi re5jqeeqqe8avxtiumw...@public.gmane.org> wrote: Hi all, This is a rather basic question about connection pooling in ruby on rails. In rails we can define the connection pool in database.yml. I assume it is quite safe to hardcode this v

[Rails] Netbeans - Malformed version number string mswin32 (ArgumentError)

2010-04-30 Thread slindsey3000
History... before it went to heck... I have been working a project in Netbeans for a month. I did a gem update outside of Netbeans while I was installing ImageMagick and RMagick... I also had to remove one verson of ImageMagick to use the one compatible with RMagick. Everything was working well.

[Rails] Re: Unable to install ruby gems 2.3.5

2010-04-30 Thread Sijo k g
Hi You have to type following from command prompt rails --version Probably that version not equal with the veriosn showing in config/environment.rb as RAILS_GEM_VERSION. So you have to install 2.3.5 rails by gem install rails -v=2.3.5 OR simply gem install rails from command promp

[Rails] Re: .build for has_one

2010-04-30 Thread Sijo k g
Hi You have to read http://guides.rubyonrails.org/association_basics.html especially sections 4.1.1.3 , 4.2.1.3 and 4.3.1.12 Sijo -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

Re: [Rails] METHOD URL

2010-04-30 Thread Hassan Schroeder
On Fri, Apr 30, 2010 at 9:50 AM, kevid wrote: > def show > url = (show method's url with the appended parameter ) > puts url     # => http://localhost:8080/app/Input/show?cv=xx puts request.url > end BTW, the API docs are your friend :-) -- Hassan Schroeder ha

[Rails] METHOD URL

2010-04-30 Thread kevid
Hi all, Does anyone knows how to access a method's url within the method for instance; def index --- -- -- #some code that will append a parameter to the url that will call the show method. show end def show url = (show method's url with the appended parameter ) puts url # => http://local

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread apr apr
Bob wrote: > just to clarify...you ran "gem update --system" by itself and not as > an option on your "gem install rails" command correct? > > Also, try adding http://rubygems.org/ to your gem sources by running > the following command... > > gem sources -a http://rubygems.org/ > > After that is

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread Bob
just to clarify...you ran "gem update --system" by itself and not as an option on your "gem install rails" command correct? Also, try adding http://rubygems.org/ to your gem sources by running the following command... gem sources -a http://rubygems.org/ After that is run, try updating system aga

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread apr apr
nirosh wrote: > better remove your ruby folder manually from the C:\ > and try to reinstall then try the earlier command Thanks for help, I have updated it now using netbeans, it is worknig now... thanks apr -- Posted via http://www.ruby-forum.com/. -- You received this message because you ar

[Rails] Re: does any one knows how to setup ror on hostmonster

2010-04-30 Thread Brijesh Shah
nirosh wrote: > the test ror app is working great > when i pulled my app into the web space. there is a error populated. > the error is "Application error Application failed to start properly" > check the link www.kavinali.com > thanks in advance. > nirosh Try to start server from the console...

[Rails] Re: send_data => invalid byte sequence in US-ASCII

2010-04-30 Thread Fearless Fool
Sharagoz wrote: > I dont know if it's related to the actual error message you are > getting, but I believe your send_data call should look more like this: > send_data(report.imagedata, :disposition => 'inline', :type => 'image/ > png', :filename => "graph.png") > You are setting it to a GIF, and no

[Rails] Re: Re: accessing one controller from another

2010-04-30 Thread the batman
that's what I assumed but wasn't sure if you meant render a partial... got it working now thanks! -- Posted via http://www.ruby-forum.com/. -- 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

Re: [Rails] Re: accessing one controller from another

2010-04-30 Thread Hassan Schroeder
On Fri, Apr 30, 2010 at 7:58 AM, the batman wrote: > what is render for? I just put that there to represent standard controller stuff -- whatever else you have in that controller method. If you mean `what does render do?`, it's time to open the API docs :-) -- Hassan Schroeder

Re: [Rails] Re: accessing one controller from another

2010-04-30 Thread shyam mohan
in .../layout/application.rhtml there will be home page <%= render :partial => 'layouts/homepage' %> in home page call your all pages ..which u want to show <%= render :partial => 'layouts/posts' %> <%= render :partial => 'layouts/news' %> .etc -Shyam On Fri, Apr 30, 2010 at 8:28 PM,

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread nirosh
better remove your ruby folder manually from the C:\ and try to reinstall then try the earlier command -- 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-t...@googlegroups.com. To unsubscribe

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread apr apr
nirosh wrote: > It should work. It worked for me. > try gem install rails -v=2.3.5 > instead of > gem install rails --v=2.3.5 > > nirosh Nirosh, When I tried with 'gem install rails -v=2.3.5', got following error ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: coul

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread apr apr
Bob wrote: > Have you tried running the following in a command line window? > > gem update --system > > Bob Bob, When I tried with 'gem update --system', got following error ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetche

[Rails] Re: accessing one controller from another

2010-04-30 Thread the batman
what is render for? -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonra

[Rails] Re: cant run rake on hostmonster

2010-04-30 Thread nirosh
there is no log files. log folder is empty -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...

Re: [Rails] Re: cant run rake on hostmonster

2010-04-30 Thread Niels Meersschaert
Look at the log files. You are probably missing a gem or DB dependency. On Apr 30, 2010, at 10:15 AM, nirosh wrote: the test ror app is working great when i pulled my app into the web space. there is a error populated. the error is "Application error Application failed to start properly" chec

Re: [Rails] accessing one controller from another

2010-04-30 Thread Hassan Schroeder
On Fri, Apr 30, 2010 at 7:02 AM, the batman wrote: > I have a posts controller and a pages controller for 'static' pages ie > my homepage > I want to have the latest post shown on the homepage accessing the > posts controller from within the pages controller The posts controller doesn't come

[Rails] Re: does any one knows how to setup ror on hostmonster

2010-04-30 Thread nirosh
the test ror app is working great when i pulled my app into the web space. there is a error populated. the error is "Application error Application failed to start properly" check the link www.kavinali.com thanks in advance. nirosh -- You received this message because you are subscribed to the Go

[Rails] Re: cant run rake on hostmonster

2010-04-30 Thread nirosh
the test ror app is working great when i pulled my app into the web space. there is a error populated. the error is "Application error Application failed to start properly" check the link www.kavinali.com thanks in advance. nirosh -- You received this message because you are subscribed to the G

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread nirosh
It should work. It worked for me. try gem install rails -v=2.3.5 instead of gem install rails --v=2.3.5 nirosh -- 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-t...@googlegroups.com. To uns

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread Bob
Have you tried running the following in a command line window? gem update --system Bob On Apr 30, 9:23 am, apr apr wrote: > E. Litwin wrote: > > What error do you get when you run "gem install rails" from the > > command line? > > Hi, > > I am getting below error > > ERROR:  http://gems.rubyonr

[Rails] accessing one controller from another

2010-04-30 Thread the batman
I have a posts controller and a pages controller for 'static' pages ie my homepage I want to have the latest post shown on the homepage accessing the posts controller from within the pages controller Is there a way I can do this? thanks -- Posted via http://www.ruby-forum.com/. -- You rece

[Rails] undefined method `call' for nil:NilClass

2010-04-30 Thread ES
why would I be getting this error after submitting my form? NoMethodError in EchantillonsController#create undefined method `call' for nil:NilClass This is my create method in the controller: def create @echantillon = Echantillon.new(params[:echantillon]) @echantillon.set_eros_values

[Rails] Add share on Facebook link

2010-04-30 Thread Rutvij Pandya
dear all, I want to add a link that is - "Share on Facebook" using which a user can share a link of a particular article with his friends on FB. Kindly suggest proper tutorial for the same.. Thanking you. -- Posted via http://www.ruby-forum.com/. -- You received this message because you a

[Rails] Re: How to install rails gems 2.3.5 on windows

2010-04-30 Thread apr apr
E. Litwin wrote: > What error do you get when you run "gem install rails" from the > command line? Hi, I am getting below error ERROR: http://gems.rubyonrails.org/ does not appear to be a repository ERROR: could not find gem rails locally or in a repository -- Posted via http://www.ruby-foru

[Rails] Content_for & Capture helper

2010-04-30 Thread Nike Mike
Hi, Whether content_for and capture helpers will work on ajax updates or in ajax pagination. Please help us. -- Posted via http://www.ruby-forum.com/. -- 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] Re: Encrypting files in Rails

2010-04-30 Thread Robert Walker
Robert Walker wrote: > There is no distinction between character based data or binary data in > the world of encryption. All that's important is that you take a string > of bits, mix it with some pseudo-randomly generated bits, based on a > known algorithm, and store a string of bits. Small cla

[Rails] Re: Encrypting files in Rails

2010-04-30 Thread Robert Walker
Demec wrote: > So far the tutorials I've seen are for encrypting text and then > decrypting it back. > So for example you have a > plaintext = "some text" > > you encrypt it and then you decrypt it depending on how you encrypted > it. > > What I am looking for is to encrypt a whole file and then

Re: [Rails] using delicious api to retrieve favorite bookmarks

2010-04-30 Thread Rick DeNatale
On Thu, Apr 29, 2010 at 1:01 PM, alternative451 wrote: > hello there, > i develop a litle rails api and i want list most favorite bookmarks > from delicious. > i'm looking for a request using yahoo id (i have yahoo api key and > others stuff needed) > > Someone already use delicious api ? > someon

[Rails] Re: Nested Models? Creation Order

2010-04-30 Thread Xavier Snark
Xavier Snark wrote: > I am learning Rails and have run into a bit of difficulty with something > I suspect is not uncommon, but I'm having difficulty getting my point > across to Google. > [snip] > when I am creating a new event record > [snip] I think you've minced some concepts here. http://gu

[Rails] Javascript + string in HTML

2010-04-30 Thread Abhishek shukla
Hello the following I am getting for the server How do i append it to my view in a html format. response = { "data": "
Name
" } currently I am doing the following something.prepend(response.data); and the output on view I am getting string from Name.

[Rails] Re: Looking for a technical term

2010-04-30 Thread Robert Walker
Rolf Pedersen wrote: > I'm not sure if this answers your question in regards to your specific > example, but let's say you have a simple table with just two numerical > columns, say two integers. > > SELECT i1, i2, i1+i2 AS "Sum" FROM MyTable > will show three columns, two of them real columns fro

[Rails] render_to_string problem

2010-04-30 Thread Abhishek shukla
i have a scenario where a jquery is receiving a response in the string and which content html component like "test" ideally in a view it should display only "test" but it displaying entire string test is there any way i am deal with the problem through js or rails? Thanks abhis -- You received t

[Rails] I need to save image from RAW_POST_DATA

2010-04-30 Thread kouzma
I load an image with FLASH-module. So, it comes to the server as RAW_POST_DATA I need to save it in many sizes. When I loaded images in attach I used "paperclip". But I think, that in current situation "paperclip" and it's "has_attached_file" is not suitable. -- You received this message because

[Rails] Re: Setting a message on a model -without- errors.add_to_base

2010-04-30 Thread Sharagoz
On Apr 30, 12:21 am, Phoenix Rising wrote: > The only thing I've thought about so far is setting a virtual > attribute of some kind, but I'd like to see if anybody has a better > idea before I jump straight to that. I think a non-DB ("virtual") attribute is a good idea. Simply declare the attribu

Re: [Rails] Looking for a technical term

2010-04-30 Thread Rolf Pedersen
I'm not sure if this answers your question in regards to your specific example, but let's say you have a simple table with just two numerical columns, say two integers. SELECT i1, i2, i1+i2 AS "Sum" FROM MyTable will show three columns, two of them real columns from the table and one computed. So

[Rails] Re: send_data => invalid byte sequence in US-ASCII

2010-04-30 Thread Sharagoz
I dont know if it's related to the actual error message you are getting, but I believe your send_data call should look more like this: send_data(report.imagedata, :disposition => 'inline', :type => 'image/ png', :filename => "graph.png") You are setting it to a GIF, and not setting the disposition

[Rails] render_to_string + json problem

2010-04-30 Thread Abhishek shukla
I am stucked at some major issue with the AjaxForm and render_to_string. I am using AjaxForm for uploading images with other details since the Ajax Upload library isn't even using Ajax. So once the form is submitted i need to call a partial and return it in a json format. but the problem is that t

[Rails] Encrypting files in Rails

2010-04-30 Thread Demec
So far the tutorials I've seen are for encrypting text and then decrypting it back. So for example you have a plaintext = "some text" you encrypt it and then you decrypt it depending on how you encrypted it. What I am looking for is to encrypt a whole file and then store it. for example I allow

[Rails] using delicious api to retrieve favorite bookmarks

2010-04-30 Thread alternative451
hello there, i develop a litle rails api and i want list most favorite bookmarks from delicious. i'm looking for a request using yahoo id (i have yahoo api key and others stuff needed) Someone already use delicious api ? someone can help me ? thank's you -- You received this message because you

[Rails] Missing source file (valid in console, errors when accessed online)

2010-04-30 Thread webo
Environment info: Ruby 1.9.1-p376 Rails 2.3.5 Apache2 with Passenger mod I installed the nokogiri gem like I would any other gem however when I require it at the top of my controller and access it through apache, I get an error saying "Missing source file" and it lists nokogiri. I have other gem