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
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
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
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|
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
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
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
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 (
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
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
>
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
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
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
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.
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
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
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
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
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
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
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
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...
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
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
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
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,
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
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
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
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
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...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
57 matches
Mail list logo