Dharmdip Rathod wrote:
> Brijesh Shah wrote:
>> Hi I am using rcov to generate code coverage. But I don't know how to
>> write cases for that...
>>
>> I have installed rcov gem and and execute rcov test/*.rb command. It
>> shows me some code coverage in files.
>>
>> Can anyone help me by givin
How can I use script/plugin install to access a SVN repository that
requires HTTP authentication?
I've tried:
script/plugin install http://[user]:[pa...@svn_rep/project/plugin
It works fine with the -x option, but obviously this is using
svn:externals
Thanks,
Russell.
--
Posted via http://ww
did you mean when you put it in your controller's helper file, it works?
make sure you are using your helpers in your views, and not in your
controller.
Chris Habgood wrote:
> I am calling a function I made in application_helper but when I try to
> call it it keeps saying method undefined. If
i used this private function for removing leading and trailing white
spaces from the values.that below function would be called before_save.
when i print the value after it strips.it prints string without any
spaces.but in the table fields it saves with spaces .
waht would be the problem.pls help
I'm starting to look at postgres because I'm going to need it for its
GIS extensions. But I run in into a problem when trying to install the
ruby-postgres gem. I get this error
Building native extensions. This could take a while...
ERROR: Error installing ruby-postgres:
ERROR: Failed to build
Brijesh Shah wrote:
> Hi I am using rcov to generate code coverage. But I don't know how to
> write cases for that...
>
> I have installed rcov gem and and execute rcov test/*.rb command. It
> shows me some code coverage in files.
>
> Can anyone help me by giving example that how to write test
Philip Hallstrom wrote:
>> Can Anyone help me with regular expression which checks the string, if
>> it contains Leading whitespaces.
>> example
>> => admin
>> it contains leading space with it.
>> so i need to check it.
>> pls help me.
>>
>
> Read up on the Regex class and pattern matching i
I am calling a function I made in application_helper but when I try to
call it it keeps saying method undefined. If I put the function in
the controller it runs just fine. any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi I am using rcov to generate code coverage. But I don't know how to
write cases for that...
I have installed rcov gem and and execute rcov test/*.rb command. It
shows me some code coverage in files.
Can anyone help me by giving example that how to write test cases and
where to write...
Than
If it's the Pacific Northwest of USA, try Planet Argon, in Portland.
http://planetargon.com/
On Feb 6, 2009, at 7:54 PM, Julian Leviston wrote:
>
> Pacific northwest of where? I'm on Australia.
>
> Blog: http://random8.zenunit.com/
> Learn rails: http://sensei.zenunit.com/
>
> On 07/02/2009, a
> Can Anyone help me with regular expression which checks the string, if
> it contains Leading whitespaces.
> example
> => admin
> it contains leading space with it.
> so i need to check it.
> pls help me.
Read up on the Regex class and pattern matching in general...
str = " some string with a l
Can Anyone help me with regular expression which checks the string, if
it contains Leading whitespaces.
example
=> admin
it contains leading space with it.
so i need to check it.
pls help me.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You rece
Quoting Rasmus Nielsen :
[snip]
> Yes I just found out after playing around with mysql's general log.
> Thank you for your reply anyway!
>
> I've decided to change the problematic column data types to int(11) -
> rails' default for mysql. The reason I made the (premature) optimization
> in the
you just need to create an un-nested route for tasks:
map.resources :tasks
outside of the nested routes block. they won't conflict.
On Feb 6, 7:59 pm, Adam Akhtar
wrote:
> I want to be able to view all the children resources in a nested
> resoruce scheme.
>
> Ie. if i have projects and tasks I
On Feb 6, 7:53 pm, Julian Leviston wrote:
> Don't u need to type ruby in front of ruby scripts on windows!?
>
> Blog:http://random8.zenunit.com/
> Learn rails:http://sensei.zenunit.com/
>
Yeah, I used to have to do that.especially in the DOS shell.
not sure why that changed.
but in this c
Hi`
--
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-talk@googlegroups.com
To unsubscribe from t
I want to be able to view all the children resources in a nested
resoruce scheme.
Ie. if i have projects and tasks I want to be able to view every single
task like this /tasks
rather than
/project/1/task
Can anybody help?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~--
Pacific northwest of where? I'm on Australia.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 07/02/2009, at 12:22 PM, "william.hard...@gmail.com"
wrote:
>
> Does anyone have any experience with or knowledge of a Rails-savvy
> colocation facility in the vicinity o
Don't u need to type ruby in front of ruby scripts on windows!?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 07/02/2009, at 12:06 PM, Doug wrote:
>
> very strange
> I'm on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the
> usual problem there.
>
I'm a little unsure as to what you want to do? Is it that you want a
default value and then to retain their selected value? Or something
else. I remember understanding collection select took me a while. It
helps if you can do the HTML long hand once through to get clear about
exactly what
I am trying to use wice grid plugin and I have run into problem. The
problem is when I have nested paths as follows:
Hardware :has_many installed_softwares
Software :has_many installed_softwares
installed_softwares belongs_to both
when I view individual hardware, I have a link "Installed Soft
You could use passenger for this (an apache module), http://
modrails.com.
-
Ryan Bigg
Mocra - Premier iPhone and Ruby on Rails Consultants
w - http://mocra.com
e - ra...@mocra.com
p - +61 432 937 289 or +61 7 3102 3237
skype - radarlistener
On 07/02/2009, at 12:09 PM, Jacob Refstrup
I have a todo list involving projects and tasks and im using nested
resources. In Projects Show - i list all tasks associated with the
project. I also have a simple "add task" which allows the user to add a
task but only specify the title. Other attributes are set to default
(e.g. due date = None,
Simon Macneall wrote:
>but that will get messy the more words you have in your
> search.
Yeah, I was figuring I was gonna have to do something like an 'explode'
with the search terms at some point.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~
isn't that just the condition
'sentence like %bird%door%'?
Although that will only get them where they appear in that particular order.
You could interate all the possibilities
ie conditions => ['sentence like %bird%door% or sentence like %door%bird%'] but
that will get messy the more words
Hello, noob here.
I have a table called 'entries' with lots of sentences, one per row
(id). I need to find specific sentences that have the words I'm looking
for anywhere in them. For example:
>1. The bird entered the kitchen through the door.
>
>2. You left the door of your car open.
>
>3. Clos
Hi,
I'm trying to see if there's an easy way that I can get script/server to
process multiple requests simultaneously? Why you might ask... well I'm
developing a web app that sits on top of several web services and for
development expediency I'm trying to "host" them all on the same host:post.
Oops... I forgot the actual fix. The fix was to comment out:
fixtures :all
--
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 gr
Well, I figured it out, so I'm going to update my thread and hopefully
help someone in the future.
The problem was in test_helper.rb on this line:
fixtures :all
Anyways, thanks for everyone's responses. And thanks to Phlip's
suggestion about starting out with unit tests. They were much eas
Does anyone have any experience with or knowledge of a Rails-savvy
colocation facility in the vicinity of the Pacific Northwest?
Thanks!
Bill
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" grou
Hi,
I'm involved in a project where I have to re-architect file uploads in
a Rails application to make it scalable. Users will be uploading large
XML files (approx. 1MB) with high probability of overlap (upload at
the same time) - which we try to minimize. The current system runs
Mongrel cluster
very strange
I'm on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the
usual problem there.
...but that's well documented...
everything was finebut then I tried the irb console.
in every shell I have (netbeans, git bash, windows shell)
I got this result:
---
Hello,
I need to produce XML that looks like this
Image Title
Description of my Image
http://www.mywebsite.com/image.jpg"; />
http://www.mywebsite.com/image_thumb.jpg"; />
but rails doesn't seem to like the ":" in the following code
for
John Barnette wrote:
> Hi,
>
> On Fri, Feb 6, 2009 at 11:07 AM, Rasmus Nielsen
> wrote:
>> MEDIUMINT (as opposed to rails' standard INT in mysql) to save memory
>> consumption on our db-server. When running a test these column is being
>> "maxed out" and hence the tests produce unusable results.
Hi all,
Does anyone know of a good tutorial / walkthrough on how to setup a
production server to use HTTPS? I've got a development server running
Apache with Phusion Passenger, but don't know how to make the leap to
deployment...
Thanks in advance for the suggestions!
--~--~-~--~~--
Probably nothing to do with your problem but html does not allow
between and though some browsers do not object. It is not
allowed between and either.
2009/2/6 Jej
>
>
>
> Maybe a stupid remark: I don't see any submit button in your form...
>
>
> > However, this is not working at all. The v
Hello-
I am trying to install the query_trace plugin here:
http://github.com/ntalbott/query_trace/tree/master
I can't figure out how to install it. I've tried script/install
plugin, I've tried svn, I've tried downloading the files and placing
them in the vendor/plugins directory, nothing seems
Maybe a stupid remark: I don't see any submit button in your form...
> However, this is not working at all. The view renders fine. But I am
> not sure why the id that is passed to the controller is totally out of
> whack. I have tried the following hash in the controller and it gives
> me an e
Carsten Gehling wrote:
> *sigh*
>
> I found only one solution: I converted all my decimal fields in the DB
> to varchar, and rewrote my code to make sure the value was converted
> to BigDecimal before used in calculations.
>
Two thoughts:
1. Use composed_of to make the process of String conversi
Hello,
I'm having some trouble with an association between two tables in my
RoR site. It looks like Rails is attempting to truncate the name of
my model so that it can fit the normal model conventions. Any idea
how I can override this?
The error:
uninitialized constant Project::ProjectProgres
Sorry about the delay:
I found a nice tutorial here:
http://www.railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html
On Feb 5, 12:37 pm, Mathieu Rousseau
wrote:
> I already used responds_to_parent successfully.
>
> What are the better alternatives if we use Apache and P
Sean McGilvray wrote:
> I am looking to see of someone has created a setup that will allow for
> a trial period of 30 days without collecting payment info up front.
>
> On the 30th day charge one fee (i.e. 4.95 + 9.95 setup fee)
>
> Then charge 4.95 a month after that.
>
> If you know how to do
Oh BTW just added recursive to_xml too, which supports
ActiveRecord::Base objects
http://web.me.com/adamfowleruk/adamsapple/Blog/Entries/2009/2/6_Ruby_to_xml_implementation.html
Adam.
On Feb 6, 5:29 pm, adamfowleruk wrote:
> Hi all,
>
> I've been looking at some options for getting a from_xml
1) Why does `gem update` install Rails 2.3.0 when it's not been released yet?
2) Why does `gem update` install Rails (2.3.0) on one of my servers
but sticks with 2.2.2 on another server? Same Linux distro, same ruby
version, same gem version.
Thanks,
--
Greg Donald
http://destiney.com/
--~
Hi,
On Fri, Feb 6, 2009 at 11:07 AM, Rasmus Nielsen
wrote:
> I've recently begun writing tests in rails and I've run into a problem.
>
> After recreating my test-database and running my few tests ONCE the auto
> increment ID setting for some of the tables in the test-database is set
> to a very
Hello, I'm a newbie here... please... can anyone help me about FULL
AJAX ? for example if i'm scaffolding a simple model and controller
for product which only have 1 field for NAME:STRING with the command :
script/generate scaffold Product name:string
and for the generated code I like to turn it
Hi there,
I've recently begun writing tests in rails and I've run into a problem.
After recreating my test-database and running my few tests ONCE the auto
increment ID setting for some of the tables in the test-database is set
to a very high number, as in:
.. ) ENGINE=InnoDB AUTO_INCREMENT=84154
*sigh*
I found only one solution: I converted all my decimal fields in the DB
to varchar, and rewrote my code to make sure the value was converted
to BigDecimal before used in calculations.
- Carsten
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~
Frederick Cheung wrote:
> On 6 Feb 2009, at 16:55, Steve Davie wrote:
>
> <% end %>
collection_select ignore the :selected option.
>>> should add that this will change in 2.3
>>
>> Thanks for the info Fred, but do you know of any convention for
>> handling
>> this kind of pro
On 6 Feb 2009, at 16:55, Steve Davie wrote:
>
> Frederick Cheung wrote:
>> On 6 Feb 2009, at 16:47, Frederick Cheung wrote:
>>
<% if params[:cruise_info] %>
<%= collection_select :cabin_type, :cabin_type_id,
CabinType.find_by_status(1).collect {|ct| ct}, :id, :name,
{:se
Please call me on 02085452110 or drop me your CV to j...@alan-morris.com
Must be a client facing RoR dev with a couple of years experience.
Many thanks http://www.linkedin.com/in/jamescblayamrphp
--~--~-~--~~~---~--~~
You received this message because you are subsc
The first of the parameters passed to the block is the object that is
sent the message designated by the symbol. (Or in other words, the
method designated by the symbol is called on the object that is the
first parameter).
So people.collect(&:name) works because the collect iterator yields a
memb
Hi all,
I've been looking at some options for getting a from_xml
implementation working with ActiveRecord based classes. I had a few
issues and couldn't resolve them, so I rolled my own. Seems to work
well for simple parent > child relationships, including collections.
I thought I'd post in case
Hello all,
I am a newbie in Rails and have been trying to solve the following by
myself for the past 3 days to no avail. Any help is appreciated.
Here is what I am trying to do:
1. Run a search on a table
2. Create a form that will update one attribute per record within the
result set
Here is
On 6 Feb 2009, at 16:35, Steve Davie wrote:
>
> I'm getting murdered by this thing! For the life of me, I can't
> figure
> it out. I've spent literally days on google.
>
> Here's what I would like to do (in rails 2.2.2):
>
>
> <% if params[:cruise_info] %>
> <%= collection_select :cabin_type
Frederick Cheung wrote:
> On 6 Feb 2009, at 16:47, Frederick Cheung wrote:
>
>>>
>>> <% if params[:cruise_info] %>
>>> <%= collection_select :cabin_type, :cabin_type_id,
>>> CabinType.find_by_status(1).collect {|ct| ct}, :id, :name,
>>> {:selected =>
>>> params[:cruise_info][:cabin_type_id]}%>
On 6 Feb 2009, at 16:47, Frederick Cheung wrote:
>
> On 6 Feb 2009, at 16:35, Steve Davie wrote:
>
>>
>> I'm getting murdered by this thing! For the life of me, I can't
>> figure
>> it out. I've spent literally days on google.
>>
>> Here's what I would like to do (in rails 2.2.2):
>>
>>
>> <
OK, I see how this works now, but I can't figure out how to get extra
args in
there, i.e. something like [1, 2, 3].collect(&:modulo, 2) doesn't work
because
it's improper Ruby syntax. I assume there's a reason extra args are
allowed,
so could someone give a brief illustration of the calling
I'm getting murdered by this thing! For the life of me, I can't figure
it out. I've spent literally days on google.
Here's what I would like to do (in rails 2.2.2):
<% if params[:cruise_info] %>
<%= collection_select :cabin_type, :cabin_type_id,
CabinType.find_by_status(1).collect {|ct| ct},
On 6 Feb 2009, at 15:58, Kenneth McDonald wrote:
>
> OK, I see how this works now, but I can't figure out how to get extra
> args in
> there, i.e. something like [1, 2, 3].collect(&:modulo, 2) doesn't work
> because
> it's improper Ruby syntax. I assume there's a reason extra args are
> allowed,
It allows 1 - n ? Can I have a list of attachments associated to the model?
or you have to add each attachment?
On Fri, Feb 6, 2009 at 1:14 PM, Andrew Timberlake <
and...@andrewtimberlake.com> wrote:
> On Fri, Feb 6, 2009 at 3:23 PM, Mathieu Rousseau <
> mathieu.rousseau...@gmail.com> wrote:
>
>>
I do seemed to be getting blocked by my controller. The issue that I am
having is that I am sending emails out with embedded html and I am
having trouble sending the style sheets along with the email. What I
thought I could do was simply reference the style sheet via the url, but
I have encoun
Has Anyone found a solution to this? My setup is like this
layout (pseudo-code)
<%= yield : head %>
<%= render :partial => 'home/menu' %>
<%= yield %>
In my partial I have:
<% content_for :head do %>
someJavaSCript
<% end %>
Some Html blah blah..
And it is not renderin
Thank you!
Ken
On Feb 5, 2009, at 6:13 PM, balint.e...@gmail.com wrote:
>
> It is not possible in "plain" ruby because Rails extends the Symbol
> class with the possibility of converting it into a Proc (that's what
> happens when you precede something with a &). From the Rails source
> code:
>
> "_method"=>"put", "action"=>"update", "spec"=>{"photo"=>"Blue-Wild-
> Flower-1-1024x768.jpg"}, "id"=>"10", "controller"=>"spec"}
If you can see the file name and not something like :
"photo"=>#
There's a mistake. Maybe you forgot the multipart on the form?
--
Posted via http://www.ruby-forum
Newb Newb wrote:
> Hi..
>
> I want to check for correct ip address while i submit the form.
> When i used below regular expression.it accepts 0.0.0.0 as ip address
> value.
> REGEXP_HOST_ADDRESS
> =/\A(?:25[0-5]|(?:2[0-4]|1\d|[1-9])?\d)(?:\.(?:25[0-5]|(?:2[0-4]|1\d|[1-9])?\d)){3}\z/.
> But in my c
On Fri, Feb 6, 2009 at 3:23 PM, Mathieu Rousseau <
mathieu.rousseau...@gmail.com> wrote:
> I used both: as far as I know paperclip only permits you to have 1
> attachment per model. attachment_fu is more flexible about this.
> am I wrong?
>
Paperclip allows more than one attachment per model
And
Solved!
I had to use bounding box to position the text.
The trick is to use the bounding_box parameters:
:width => bounds.width, :height => bounds.height
instead
:width => 800, :height => 600
now prawn center the text exactly.
See all the code...
Prawn::Document.generate("Certificado.pdf",
I uninstalled rails 2.2.2 in my associations folder of activerecord
2.1.0 there is no method like transfer/change any one please help me..
I am unable to proceed furthur
On Feb 5, 11:31 am, Hema wrote:
> Hi,
>
> Where I have to check in vendor directory
>
> I have the plugins directory only
try it like this:
date = DateTime.civil(y=from_year, m=from_month, d=from_month,
min=from_time.min, s=from_time.sec, of=0)
here is the according ruby-api:
http://www.ruby-doc.org/core/classes/DateTime.html
--~--~-~--~~~---~--~~
You received this message becaus
There's a good write-up here:
http://www.regular-expressions.info/numericranges.html
While not specific to matching an IP address, it does cover how to match
ranges like 0-255.
Regards,
Craig
--~--~-~--~~~---~--~~
You received this message because you are subscri
When using prepend_view_path in a before_filter in
application_controller it renders all views correctly from the added
view path. However layouts are still from the default location..
Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subsc
Look up the date class in the prag prog's book. It explains how to
create dates. Date.new(2008,12,30) for example.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 06/02/2009, at 8:42 PM, Sunny Bogawat wrote:
>
> Hi,
>
> In one of my application i have to create a
> use :except instead of :exclude
>
> => protect_from_forgery :except => [:auto_complete_for_tag_name]
http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html#M000493
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~-
Shandy,
Phlip is too concise, but right. The URL of your public folder is
www.mysite.com/
So www.mysite.com/images/1.gif is the URL for the file 1.gif in the
images directory of your public folder. Got it?
Nonetheless, your public folder is just for your static assets. Rails
actions are handled
Eric Pugh wrote:
> I tried out adding the exclude line:
>
> protect_from_forgery :only => [:tag]
>
> However, it seems ugly that I have to add each method manually. I
> tried
>
> protect_from_forgery :exclude => [:auto_complete_for_tag_name]
>
> but that didn't work. Is this oddness
Ah! All it needed was:
ActionMailer::Base.delivery_method = :sendmail
I was sure I was missing something obvious.
Thanks for your help!
Chris
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I used both: as far as I know paperclip only permits you to have 1
attachment per model. attachment_fu is more flexible about this.
am I wrong?
On Fri, Feb 6, 2009 at 10:17 AM, tschundeee wrote:
>
> I tried attachment_fu and paperclip and I can only recommend
> paperclip... I think it's easier a
Is there any way to add some class of the css stylesheet to the text
that you want to translate??
Exemple:
what:
txt: " Exemple"
Thanks in advance
Belen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
I tried attachment_fu and paperclip and I can only recommend
paperclip... I think it's easier and more rails-like :-)
To your question: This guide looks good:
http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.html
I have in mind that acts_as_attachment and attac
Hello Greg!
at first, congratulations! very nice work!
funny, today a tried again to subscribe to the prawn group
and noted the "r u a human?" question. So I subscribed and returned
here,
in the rails talk, to copy my msg to there, then I saw you reply :)
well, here we go...
On 29 jan, 16:11, G
Hi... I wrote some similar code, and packaged it up into a plugin.
See: http://patshaughnessy.net/repeated_auto_complete
I also know there are a few other forks of the auto_complete plugin
that also solve this same problem, for example:
http://warrenseen.com/blog/2009/01/16/rails-auto-complete-wi
Can someone point me in the right direction. Is it possible to use ROR
for an online dictionary similar to dictionary. com? If so, what is
required to do this? Can it manage xml data and generate virtual pages
to improve performance?
Please advise. Is there another CMS or framework better suited
Hello,
I've tried to generate a resource using a pre-defined namespace (admin), but
it seems i could not make it work out of the box. I've managed to do it with
pretty few hacking step and made a post out of my experience:
http://rails.anyware-technologies.com.br/2009/01/19/namespaced-resource-ge
Sorry debt read enough of the mail. Badicall it's timing out when
sending touour SMTP server. Are u sure the settings are right?
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 06/02/2009, at 9:24 PM, Chris Hanks wrote:
>
> Hello -
>
> I'm kind of new to this who
What method of sending mail are you using? Check your logs while you
sen the mail.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 06/02/2009, at 9:24 PM, Chris Hanks wrote:
>
> Hello -
>
> I'm kind of new to this whole web development thing - I have a VPS and
>
You're right I skim them. Sorry about that. Didn't realize you could
use do there. It's definitely optional tho. I fail :) thanks, I learn
something.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 06/02/2009, at 10:58 PM, MaD wrote:
>
> hallo julian,
>
> you a
hallo julian,
you already said the following:
> You don't need a do when you're using for in
you're right on that one, but you don't have to tell me twice:
> For...in doesn't take do!
especially as this is just wrong. try it yourself:
for number in [1, 2, 3] do
puts number
end
> Obvious
Can anyone please give me the solution? I am newer to Rails!
On Feb 6, 9:02 am, Paryank wrote:
> Can anybody give me the solution???
>
> On Feb 5, 3:07 pm, Paryank wrote:
>
> > Hi
>
> > I have installed CentOS 5.2 on my PC. I have build in Ruby 1.8.5 and
> > Ruby-devel. I have downloaded rubyge
On 06 Feb 2009, at 10:26, Cyrus Dev wrote:
> Anybody know how to upload multiple images using attachment fu plugin
attachment_fu is a model plugin, so it has nothing to do with multiple
file upload. That said, a simple google search brings up plenty of
tutorials on how to handle it in views
On 6 Feb 2009, at 10:06, Sahil Dave wrote:
> hi all
>
> i was wondering whether it is possible to use partials along with
> form_for and form_field. following code is not working. is there
> some error or this case is impossible..??
>
You need to pass the form builder object to the partial (
Hi,
I m having a problem with refreshing the page once my data is sent using
send_file.
how to achive it plz help
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
for filename specify your filename directly with filepath
for e.g @filepath = "C:/Rails
application/smartime/public/excel/"+"report8.xls"
and then pass this variable for filename
It might work
Siva wrote:
> I tried the same in my code. But always the browser is getting only
> the action name
Hello -
I'm kind of new to this whole web development thing - I have a VPS and
I've installed ubuntu 8.04 and postfix on it, and now I'm deploying
simple rails apps to get the hang of the whole process.
So I put together a small forum application, based on the
restful_authentication plugin. I've
hi all
i was wondering whether it is possible to use partials along with form_for
and form_field. following code is not working. is there some error or this
case is impossible..??
*#new.html.erb*
Enter Details for new Partner:
<% form_for(@partner) do |f| %>
<%= render :partial => 'form', :lo
I use the following method to remove the AR connection.
MyClass.remove_connection
However, I use connected? to check, it return true...
MyClass.connected?
=> true
Am I used the wrong method? Please advise
Thank you.
Valentino
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~
When using 'render_to_string' in your views (for some special
reason :) ) the response.content_type is set to the wrong value I
think.
I have a:
respond_to do |format|
format.js {}
end
which in the view uses the render_to_string method. The returned
content type is 'text/html' instead of 'tex
Hi,
In one of my application i have to create a date obj like 2009-02-05
23:26:35
but for this i have following input which is integer.
form_day = 05, from_month = 02 from_year= 2009 and from_time=12:00:00
Please suggest a best solution for it?
--
Posted via http://www.ruby-forum.com
look in your
configs/enviroments/
you see the following files:
production.rb <- correct this file to debig = true, look at your
development for instriration...
test.rb
development.rb
regards
svend
On Feb 5, 7:12 pm, Achille Pinson
wrote:
> I have follow the wiki.
> Everything was working perf
Hello Everyone,
Anybody know how to upload multiple images using attachment fu plugin
thanks in advance
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Tal
1 - 100 of 101 matches
Mail list logo