similar to: How to pre-populate Edit form in rails?

Displaying 20 results from an estimated 7000 matches similar to: "How to pre-populate Edit form in rails?"

2006 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many. The join table Communities_Users has additional fields [ is_active, is_blocked, join_date] etc. These are populated using @user.push_with_attributes(:is_active => true,...). Later on how do we update or retrieve the attributes in the link table for a given user or a community with doing it explicitly using SQL? Thanks,
2005 Jun 12
3
Essay identification
Hi R-help, I have a database of 10 students who have written an overall of 78 essays. The challenge? I would like to identify who wrote the 79th essay. Has anybody used R in this context? Even if not, would you suggest me which pattern recognition technique I might possibly apply? Thanks a lot and regards, Tom --------------------------------- [[alternative HTML version
2006 Apr 05
7
Regex for splitting string
Hi We have a search website where the user can type in individual words separated by spaces and/or phrases enclosed in single or double quotes. We are looking for a way to obtain a list of words and phrases from the search string. Can someone help? Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Feb 08
2
How to install RailsCron?
Hi, I would like to start running a background procedure once a user logs in to his account on the website. For this I am considering using the RailsCron object. However, I am not able to download it. I am new to Rails. Can someone give me the excat command I should use to get RailsCron? Can someone suggest a better way of running a procedure in the background? Thanks -Yash -- Posted via
2006 Feb 11
1
How to POST raw data?
Hi, I know that ActionController::AbstractRequest provides a raw_post method that reads the data that has been posted to the HTTP server as raw data. I am trying to create a rails application that POSTs raw XML data to a web page that reads raw data. I would like to know how to POST raw data to an HTTP server using Ruby on Rails. Can you help me with this? Thanks, Yash -- Posted via
2006 Feb 11
1
Instructions required for RailsCron
Hi, I am writing a client-server rails app. The client and server maintain similar databases. Periodically, I would like them to synchronize their databases. For this, in the application, once the user logs in, I want to spawn a background process at the client that first sends the client''s new data and then receives the server''s new data. I am thinking of using RailsCron for
2006 Mar 30
1
What is the entry-point for a rails app?
Hi, I would like to run a DOS command such as "net send ..." when I start the rails application using script\server. Can you please tell me where I need to put the call? Is it environment.rb by any chance? -Yash -- Posted via http://www.ruby-forum.com/.
2006 Feb 04
2
Looking for tools developed on Rails
Hi, We are trying to setup a tool developed on Ruby on Rails, that provides a Project Dashboard, with the following features: Abstract of the project. Task list Calendar The task list should provide: Task Name Owner Start and end dates %completion Dependency, etc. The Calendar should provide Day, Week and month views. Can you please suggest some tools with available source code that loosely
2006 Mar 22
1
How to go DRY?
We are creating a website for creating and maintaining communities. When members of a community are listed, we show their summary in a TABLE. So we have written a _member.rhtml partial to show this summary for that member. To show the memberlist we do render :partial => member, :collection => @members Now the problem is the row displayed for every member by the _member partial, may differ
2012 May 31
1
Automated essay scoring by R
Hi, I am a doctoral student and I want to have a study about the automated essay scoring system. From some papers the authors mentioned that some experiments of the automated essay scoring study are using the package of the R open source software. I am a new learner of R and I would like to know which package of R can be used to serve this purpose and how to do then. Grateful if you could give me
2006 Apr 29
3
undefined class/module
Hi, We are running a Rails application in development mode. Intermittenly we get an error on some pages, saying : undefine class/module User. If we refresh the page, the error goes away and we see the html correctly rendered. User is a model defined in the models directory and has been listed in application.rb as model :user. I am suprised by the fact that this happens only occasionally. Can
2006 Apr 02
1
Looking for helpers/components/controllers for form wizards
Hi, In our project, we have a number of forms to be filled by the users. The forms are presented as wizards - each form as a number of steps. I would like to know whether there is an existing helper developed by the Rails community that can let me create wizards easily. We also want all wizards to have the same look and feel. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 May 29
9
design recommendations for authenticating users with lots of different attributes..?
I''ve been struggling a bit trying to figure out the best way to design/implement a system with authentication/authorization, and was hoping some of you may be able to offer some advice.. At the moment, I have a system with 4 different types of users - clients, administrators, sales_reps, and public_users. I''m using "Authorizing Users with Roles" from the Rails Recipes
2006 Mar 23
1
Using regional settings from windows registry
Hi, On our web pages, we would like to show all dates and times in the format defined on the server''s registry. The rails application will be installed in different countries, hence we want to cater to all types date and time formats by picking it from the registry. The formats used in the registry are such as M/d/yyyy, whereas the Time class in Ruby uses formats such as %m/%d/%Y.
2009 Sep 10
1
function to solve equations
Hi, I am trying to solve this equation prob = exp(-3.33 + 0.0102*x)/(1+exp(-3.33 + 0.0102*x)). I want to write a function where I call the function and enter the 'prob' value and the output should be the 'x'. Im not sure how to write this. I have a basic structure but im not sure if its correct. calc <- function(prob){ prob <- exp(-3.33+0.0102*x)/(1+exp(-3.33 + 0.0102*x))
2009 Oct 07
2
[LLVMdev] DebugFactory
On Thu, Oct 1, 2009 at 8:34 PM, Talin <viridia at gmail.com> wrote: > Here is a patch that does just that. This does not work. I'm getting llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp: In member function ‘llvm::DIType clang::CodeGen::CGDebugInfo::CreateQualifiedType(clang::QualType, llvm::DICompileUnit)’: /Users/yash/clean/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:225: error:
2006 Apr 04
1
Keeping 2 different sessions active together
Hi, Our web application shows pages from 2 different web servers. Each web server has a session timeout period of 30 min. If I access pages from just one server for 30 min without touching any page from server2, the session on server2 expires. Then when I access a page from server2, I get a warning saying the session is expired. For a normal user, we are projecting the whole app to be a
2006 Apr 18
1
Pagination links with separator
Hi, I have @result_pages and @results obtained from paginate in an action. I want to show the pages as 1 | 2 | 3 | 4 > The fifth page will show: < 5 | 6 | 7 | 8 > and so on. How exactly do I render the paginator to give this effect? I guess I will have to use pagination_links_each. But being new to Rails, I need help. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Mar 15
1
push_with_attributes not inserting default values
I have a join table A_B with columns[a_id, b_id, c_data default 1, d_data default 1]. If I do: @aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0}) I find that the row inserted, has d_data set to 0 and not the default value specified in the database, which is 1. So I am having to explicitly set it using : @aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0, :d_data => 1}). Is this
2006 May 06
1
Speex forWindows Mobile 5.0
hi, I am Praveen , working in Yash Technologies , I would like to know your contact number as we want to know whether the speex codec is compatible with the Windows Mobile 5.0 or not . Also can we get the source code for the pocket pc version of the speex codec . Hope we get your contact number soon. thanks, Praveen --------------------------------- Yahoo! India Answers: Share