[Rails] Using helper methods to perform Ajax filteri ng…?

2010-01-01 Thread gberz3
Hi All, I'm looking to filter a list of items using a created helper method instead of a controller method. I see that it's possible to dynamically manipulate a view using prototype helpers from within a helper. However, I'm not sure how to use a text field in combination with "observe_field" in o

[Rails] Tiny_MCE_Plus with ajax

2010-01-01 Thread Krunal Shah
I have used tiny_mce_plus plugin. I have set editor on partial file. And i am submitting form with ajax. <% form_remote_for(@message,:url => compose_url(params[:login]),:method => :post) do |f| %> <%= f.text_area(:description, :class => "mceEditor", :rows => '8',:cols => '20',:ajax => true) %> <%=

Re: [Rails] authlogic with declarative authorization

2010-01-01 Thread Rails ROR
Hi, Oops! sorry that i couldn't post you the exact details. When i log in as the admin , i should be able to perform all the operations but some how the admin is also restricted to perform a new or a create action. I even tried with acl9. I think i am missing some basic point. Please tell me tha

[Rails] Named Scopes and Created At

2010-01-01 Thread jm
I am using named scopes in my Post model to find recently published posts: named_scope :recently_published, :conditions => { :published => true }, :order => 'created_at DESC' Posts HABTM tags, so I have my routes for those setup as: map.resources :tags do |tag| tag.resources :posts end So tha

Re: [Rails] How to explore the environment?

2010-01-01 Thread Bruno Grasselli
If you want to use the same methods in both environments (view and controller), you can do like this (in controller): def method_a end def method_b end helper_method :method_a, :method_b Then the methods will be available also in views. 2010/1/1 Norm Scherer > Fritz Trapper wrote: > > It'

[Rails] Re: Web 2.0 Javascript Standardization Topic

2010-01-01 Thread Marnen Laibow-Koser
pharrington wrote: > On Jan 1, 5:58�pm, Alpha Blue wrote: >> today, but much of it lacks certain features that I personally find >> Unfortunately, some of the admin areas do require scripting and I just >> can't find a way to get around scripting without compromising the >> intuitiveness of the in

Re: [Rails] How to explore the environment?

2010-01-01 Thread Norm Scherer
Fritz Trapper wrote: It's my first rails project and something is broken: my action controllers can't access methods defined in the helper modules. The only thing, I successfully verified (by setting a debugger statement at the very beginning of the helper modules) is, that the helper modul

Re: [Rails] Re: What backup approach for uploaded files stored in file system???

2010-01-01 Thread Philip Hallstrom
My advice would be to either setup a script to download the files (and a dump of your database!) to your local machine/server or automate the process and dump it on S3. Or both. If your ISP has a problem, you are *one* of thousands (or tens of thousands) of clients. In other words, you're

[Rails] Re: Web 2.0 Javascript Standardization Topic

2010-01-01 Thread pharrington
On Jan 1, 5:58 pm, Alpha Blue wrote: > Thanks everyone, and I do appreciate the comments. > > Coming from a php background and being a former vbulletin developer, > I've decided to tackle a personal project that involves creating a > complete website portal.  It's unlike most projects so unfortuna

[Rails] Re: How to explore the environment?

2010-01-01 Thread pharrington
On Jan 1, 6:38 pm, Fritz Trapper wrote: > It's my first rails project and something is broken: my action > controllers can't access methods defined in the helper modules. > > The only thing, I successfully verified (by setting a debugger statement > at the very beginning of the helper modules) i

[Rails] How to explore the environment?

2010-01-01 Thread Fritz Trapper
It's my first rails project and something is broken: my action controllers can't access methods defined in the helper modules. The only thing, I successfully verified (by setting a debugger statement at the very beginning of the helper modules) is, that the helper modules get loaded before the act

[Rails] Re: What backup approach for uploaded files stored in file system???

2010-01-01 Thread greghauptmann
PS - Checked with dreamhost & they do make filesystem (domain) backups, but they quite clearly say they do not guarentee things here, and recommended/offer an approach for you to do a complete domain download every 30 days. The only issue here then is the amount of downloading you'd have to do...w

Re: [Rails] Encrypt senders pvtkey with data and with recievers pubkey

2010-01-01 Thread Aaron Turner
You would store the key(s) on disk- just like the OP. Usually this is done in the PGP keyring. Who's key you would use depend on who you're encrypting the file to & who you are signing it as. Basically, PGP was made specifically for this use case. I can use PGP to encrypt a file to Jack (usin

[Rails] Re: Web 2.0 Javascript Standardization Topic

2010-01-01 Thread Alpha Blue
Thanks everyone, and I do appreciate the comments. Coming from a php background and being a former vbulletin developer, I've decided to tackle a personal project that involves creating a complete website portal. It's unlike most projects so unfortunately, I can't give out all of the features a

[Rails] Re: will_paginate resulting in server 500 error...

2010-01-01 Thread Frederick Cheung
On Jan 1, 6:43 pm, RubyonRails_newbie wrote: > When I look in the production.log the following is returned: > > ActionView::TemplateError (undefined method `will_paginate' for > #) on line #26 of app/views/buddies/ > _search_form.rhtml: > 23: > 24: Your search results are below: > 25: > 26: <%

[Rails] What backup approach for uploaded files stored in file system???

2010-01-01 Thread greghauptmann
Hi, I'm wondering what backup/recovery approach do people use/recommend when they have an application that has not only a database (mysql in my case), but uploaded files that are stored in a file system (using paperclip in my case)? Also part of the question I guess is how much one should trust t

Re: [Rails] Encrypt senders pvtkey with data and with recievers pubkey

2010-01-01 Thread Curtis Jennings Schofield
Oh - and how would you store the keys. On Fri, Jan 1, 2010 at 1:12 PM, Curtis Jennings Schofield wrote: > Hi - I really value this response. > >  I'm curious about the PGP encryption of the files - who's key would you use? > > > On Fri, Jan 1, 2010 at 1:00 PM, Aaron Turner wrote: >> On Tue, Dec

Re: [Rails] Encrypt senders pvtkey with data and with recievers pubkey

2010-01-01 Thread Curtis Jennings Schofield
Hi - I really value this response. I'm curious about the PGP encryption of the files - who's key would you use? On Fri, Jan 1, 2010 at 1:00 PM, Aaron Turner wrote: > On Tue, Dec 29, 2009 at 6:24 AM, Vamsi Krishna wrote: >> Hi All, >> >> I wanted to ensure confidentiality by encrypting some in

Re: [Rails] Encrypt senders pvtkey with data and with recievers pubkey

2010-01-01 Thread Aaron Turner
On Tue, Dec 29, 2009 at 6:24 AM, Vamsi Krishna wrote: > Hi All, > > I wanted to ensure confidentiality by encrypting some information.  I > also wanted to maintain non-reputability by encrypting huge data with > the senders > private RSA key. > > Here the data is first encrypted with Senders(lets

[Rails] will_paginate resulting in server 500 error...

2010-01-01 Thread RubyonRails_newbie
Hello there, On my site I have a basic search form that uses find_by_ferret which will return users within the site and render the data that matches the search criteria If multiple rows are returned, the rows are rendered, and then paginated, if more that X are returned. Sounds simple, (and worke

[Rails] gmail and smtp

2010-01-01 Thread RubyonRails_newbie
hello everyone... I'm trying to set my email up in production. During test and development, I just used sendmail, which was stored in my development.rb folder at /config/environments Everywhere online suggests that in production, the mailer stuff needs to be in /config/ and then into the environ

[Rails] Re: gem install blackbook on centos error

2010-01-01 Thread Anjali Cg
Jeba Momin wrote: > Charles Johnson wrote: >> On Fri, Mar 13, 2009 at 8:11 AM, Jeba Momin < >> rails-mailing-l...@andreas-s.net> wrote: >> >>> >> Exactly the same error message? (Sorry about asking that.) >> >> Cheers-- >> >> Charles > > Yes..exactly the same error message > And I don't hav

[Rails] Re: Oracle adapter problem? How to fix this?

2010-01-01 Thread pepe
Good idea. I'll do it, although if I remember well what I read Raimonds Simanovskis mentioned that he offered himself to Oracle to maintain the adapter and they declined, not showing much interest in enhancing it, which makes me believe not much will change, unfortunately. On Dec 30 2009, 5:25 pm,

[Rails] Re: Help with routes

2010-01-01 Thread Quee WM
Worked like a charm. Thanks. Bruno Grasselli wrote: > Try: > > map.resources :feeds, :collection => {:xml => :get, :csv => :get} > -- 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 thi

Re: [Rails] Help with routes

2010-01-01 Thread Bruno Grasselli
Try: map.resources :feeds, :collection => {:xml => :get, :csv => :get} 2010/1/1 Quee Mm > I would like to serve different feeds eg: xml, csv etc. which will be > created on request and will be served from the controller named feeds. > > the action names will be xml and csv. > > how can i setup

Re: [Rails] ruby on rails application help.

2010-01-01 Thread Bruno Grasselli
If you are using SQLite, you don't need to use rake db:create, only rake db:migrate (to create the database's tables). If you are using MySQL, then you need to create the database (rake db:create) before create the tables. If doesn't work, please copy paste the last lines of your log/development.l

Re: [Rails] authlogic with declarative authorization

2010-01-01 Thread Rick DeNatale
On Fri, Jan 1, 2010 at 2:21 AM, Rails ROR wrote: > Hi Everybody, > > I am working on authlogic with declarative authorization. > > I created the authorization rules for guest, admin and superadmin. > > I have publishers and subjects after one logs in. > > When a guest logs in he has an authority t

[Rails] Help with routes

2010-01-01 Thread Quee Mm
I would like to serve different feeds eg: xml, csv etc. which will be created on request and will be served from the controller named feeds. the action names will be xml and csv. how can i setup the routes that i show the proper feeds at: http://www.somesite.com/feeds/xml.xml http://www.somesite

[Rails] Re: Web 2.0 Javascript Standardization Topic

2010-01-01 Thread Frederick Cheung
On Dec 31 2009, 5:32 pm, Alpha Blue wrote: > Designing around users that have javascript disabled is the same as > designing two completely separate websites.  I believe this to be a > waste of time.  Web 2.0 standards that have been bolstered by Yahoo and > Google require javascript functionalit

Re: [Rails] ruby on rails application help.

2010-01-01 Thread Rails ROR
Hello, When you create a rails program, You need to follow few steps. 1. First create a project rails -d mysql project name 2. Create Model, view, controllers[ if you want to see some output] 3. Rake db:create 4. Rake db:migrate 5. Start your server You might have missed some step On Thu, D

Re: [Rails] strange array behaviour

2010-01-01 Thread Liu Lantao
maybe 'puts @person.middle_names.inspect' will give some information of the structure . On 2009年12月27日 05:54, Matt Harrison wrote: > On Sat, Dec 26, 2009 at 09:43:26PM -0500, Rick DeNatale wrote: > >> On Sat, Dec 26, 2009 at 3:20 PM, Matt Harrison >> wrote: >> >>> I've got a relationship:

[Rails] ruby on rails application help.

2010-01-01 Thread Rahul Khobragade
Hello Sir, I am student wants to learn ruby on rails programming and want to become ruby on rails programmer. after installing ruby and installing rails through command line gem install rails --remote and after creating application as ruby script\generate.it shows message webrick server started o