[Rails] Draggable ghosting

2009-05-25 Thread Svetlana Vt

can anyone tell me how to make a Draggable element, which after drop
doesn't disappear.

draggable_element "item_#{item.id}", :revert => true, :ghosting => true
- don't work, adding element disappears.
-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Install RMagick on Lunix

2009-05-20 Thread Svetlana Vt

Ramesh Gajula wrote:
> 
> Hi All,
> 
> Can please help me on how to install RMagick on Linux machine
> 
> 
> Thanks for reply

for ubuntu:
sudo apt-get install libmagick9-dev ruby1.8-dev
sudo gem install rmagick

-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Any way to hide / mask / salt record ID?

2009-05-20 Thread Svetlana Vt

Robert Scott wrote:
> In RoR applications, each record is accessed by its own ID, usually as
> in products/ID. However, I'd prefer that users not be able to know how
> many records are in the database nor be able to access them on an
> incremental basis. Is there any way to hide or mask this ID through the
> use of an alternate? Salting the IDs seems like it could work, but I'm
> not sure how to do it - if its even the right way.
> 
> Thanks in advance!

see a plugin http://github.com/hashtrain/acts_as_random_id/tree/master
-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Removing part of a String

2009-05-07 Thread Svetlana Vt

JannaB wrote:
> I want to get the names of all files in a given directory. When I
> employ the Dir[] method, it returns the name of the files with the
> pathname I invoked it with:
> 
>   allfiles = Dir["public/images/icons/**"]
> 
> So to remedy this, I try to sub out the directory prefixing the
> string, as:
> 
>   for fil in allfiles do
>  render :text => fil.sub( "public/images/icons/",
> "" )
>   end
> 
> Yet even this doesn't remove the directory name. Clearly I am doing
> something stooopid, but just don't see it. Can someone please have a
> look and see what I am missing here? Thanks you, Janna

require 'pathname'
allfiles = Pathname.new('/opt')
allfiles.children.map{|a| a.basename.to_s}

or

Dir.chdir("/opt") do
allfiles = Dir["**"]
end
-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] external programs

2009-04-15 Thread Svetlana Vt


how i can follow to execute external programs: define, that they don't
hung with Kernel method system or another? may be use timeout?

excuse me for my bad english :)
-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: CSS issue...

2009-04-14 Thread Svetlana Vt

Abhishek shukla wrote:
> How can i call a stylesheet other then from /public/stylesheets/ 
> folder..

<%= stylesheet_link_tag "/themes/style" %>
must be work
-- 
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 this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---