[Rails] Application Profiling with ruby-prof, no Method get

2011-04-08 Thread Hans Hartmann
Hello, i want to profile my rails-application with ruby prof. i started to create a test.rb including: get / say GET / = #{path} --- then i want to acces it via plugin by: ruby-prof path/to/test/test.rb but all i get is: undifinfed methor get for main:Object (NoMethodError) can someone tell

[Rails] Get request by session id?

2011-02-11 Thread Hans Hartmann
Hello, i've stored my sessions in a session table and can acces them via: Session.all (id, session_id, data, c_at, u_at) also i can get my current session_id via: request.session_options[:id] Is there a possibility to find all request containing to every single session - to get an overview

[Rails] Re: Get request by session id?

2011-02-11 Thread Hans Hartmann
I'm not sure what you're after - requests aren't persisted anywhere (unless you're doing something special to do that) I want to find a possibility to get the PATH_INFO of each session user. My first opinion to do that was to list the env of all sessions. The reason I want to do that is to

[Rails] RJS element is null, Prototype Error?

2010-10-12 Thread Hans Hartmann
Hi there, if got some problems getting the Ajax.Request to work with rails. sending the request via onclick works but the interpretaition fails if I execute: render :update do |page| page.replace 'test', :text = 'it works' end I get 2 alerts: RJS error: TypeError: $(#test) is null

[Rails] Re: RJS element is null, Prototype Error?

2010-10-12 Thread Hans Hartmann
page.replace seems to be a helper which automatically searchs for $('#test') ... in other rails-projects it always worked liked that. the v.2.0.0 I got by listing my gems via command line. Isn't there a possibility to get the page.replace to work? if i do page.document.getElementById('test')

[Rails] Re: RJS element is null, Prototype Error?

2010-10-12 Thread Hans Hartmann
How can I get the page.replace to 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-t...@googlegroups.com. To unsubscribe from this group,

[Rails] Re: RJS element is null, Prototype Error?

2010-10-12 Thread Hans Hartmann
new infos: If i try the page.insert_html in my errored application, i get for page.insert_html, :bottom, test, :text = it works. try { $(#test).append(it works.); } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('$(\#test555\).append(\it works.\);'); throw e } In an application

[Rails] DatabaseEntries deleted by rake

2010-09-15 Thread Hans Hartmann
Hi there, i unfoutunately raked my rails-project. This caused an erase of all entries of my sql database. The Model is still there but all entries are missing. Is the any possibility to redo this steop or recover the entries? THANK YOU -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Intelligent Searchform

2010-09-13 Thread Hans Hartmann
Hi there, i wrote an intelligent searchform, which is divided into categories. Just a short overview of the workflow. For every keyword, which is entered in the searchform the matches are checked. So we've got a rank in a hash. [key of entry, relevance match] For example: @hash = [123 = 5, 124

[Rails] session[:foo] size limit?

2010-04-23 Thread Hans Hartmann
Hi there, i want to store an array of filenames in a session-variable (session[:foo). The problem is: if it reaches a current number of entries the application breaks. Is there a storage-limit of session-variables? Is it possible to extend it? Is there an alternative to store large

[Rails] Re: session[:foo] size limit?

2010-04-23 Thread Hans Hartmann
Do you mean something like storing the entries temporarly in a database with action:create and delete them when not needed anymore? ... I think thats pretty much confusing to store. Isn't there a possability to many strings/arrays (checkbox_values) in a variable? How can I change the session

[Rails] Re: session[:foo] size limit?

2010-04-23 Thread Hans Hartmann
With a rails app generated by a recent version of rails you'll have an initializer called something like session.rb or session_store.rb in config/initializers that sets up the session I've got a rails app generated by a recent version of rails but no initializer caller session.rb ... not even

[Rails] Re: Update collection_select

2009-07-27 Thread Hans Hartmann
Hmmm ... I can't get this. I declared my choices as strings, but i don' know how to set a DEFAULT-STRING.. something like %= f.text_field :subject, :value = @ticket.subject% just for collection_selct. Thx Frederick Cheung wrote: On Jul 27, 5:41�am, Hans Hartmann rails-mailing-l...@andreas

[Rails] Re: Update collection_select

2009-07-27 Thread Hans Hartmann
can anyone help me? -- 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

[Rails] Re: Execute Ruby Script

2009-07-14 Thread Hans Hartmann
Hi there, now i tried to execute via System-Command but i just can catch the value true/false. Is it possible to declare a global variable in my ruby script - execute the script - and then catch it with rails? Greetz Hans -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Execute Ruby Script

2009-07-14 Thread Hans Hartmann
I try and try... but I can't make the script be executed (nor an other Programm) Can someone give me an example to execute external files with rails? So I can get an idea of the path-description. Thx a lot -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Quicktime Movie from Hard Disk

2009-07-14 Thread Hans Hartmann
And what can i do, if the file is some levels higher than my public-folder. Is there a possibility to browse back. I tried so much ... but nothing worked. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Data exists in table? Checkbox Problem

2009-07-07 Thread Hans Hartmann
Hi, I want to add a tag-search to my page. The tags can be given to each item by clicking a checkbox. The value of the checkboxes is saved in the table using the check_box_tag. By editing the tags of an item (refreshing the page) the checkboxes delete their status - reset theirselves. Question:

[Rails] Re: Data exists in table? Checkbox Problem

2009-07-07 Thread Hans Hartmann
Not even one response? -- 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

[Rails] Quicktime Movie from Hard Disk

2009-07-07 Thread Hans Hartmann
Hi there, i want to embed a Quicktime-Movie on my Page. I use the following code: embed src=Z:/09002_R/client/090423_1730/RO.mov width=200 height=240 autoplay=true Getting the file by an internet-adress erverything is fine, but it doesn't apply by using the path from my hard-disk. Is their a

[Rails] Re: Data exists in table? Checkbox Problem

2009-07-07 Thread Hans Hartmann
I tried and tried and tried ... but everything in my checkbox is deleted after refreshing the page (instead of the values in my database) so how can I ask for them. Thx till now... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received