Ruby on Rails Monday, July 29, 2013

" Be a Change Maker! Rural Information Tool "



Hi Ruby On Rails Community,


Let me introduce myself first. My name is Sunandan Madan and currently pursuing MBA in Rural Management from IRMA, Anand, Gujarat. I am an alumnus of DAIICT (Batch of 2007-11'). I along with my two other batch mates are working on a rural innovation project whose broader objective to help solve the rural needs through the use of ICT. In regards to that we are working to build a web based tool which can be used by NGO's and other Development Sector Organisations send critical information over phone as a voice.

With the help of college students from my undergrad college we have  a basic, easy-to-use voice platform that can be used by NGO's and Development Sector Organisations to send out critical information like vaccination reminders, pest attacks, govt schemes, market linkages over voice messages to targeted recipients in their local language and dialect. 
The current system ( dhwani.herokuapp.com ) is built on open source framework Ruby on Rails, MONGODB , HTML, CSS, Javascript.


Till now we have not made any expense. We don't have any funding with us to support full time anyone or even part time.We are doing is because of  our larger interest to fill information gap in rural areas  and because we see this tool as capable of causing great impact in different areas. But there are some funtionalities which are missing in the current tool  ( dhwani.herokuapp.com ) before it can be used by any ngo or development sector organisation. Some of the functionalities are :

1. Making the website in all the major Indian languages (hindi, gujarati, malyalam etc)
2. Generating analytic reports in the excel based on the call summary
3. To integrate Dhwani application with multiple service providers. Currently we are using only one service provider whose API we are using to make calls. We want to integrate our application with all those service provider at the backend. Eg: one service provider is Microsoft IVR junction.(http://www.ivrjunction.org/index.html)
4. Integrating the application with govt websites like Mother and Child Tracking System and  open source frameworks like Commcare. (http://www.commcarehq.org/home/)
5. Some More to come as time proceeds.

We wanted to ask you if some members of the Ruby Community can voluntarily work on this project to make this tool more robust and complete. Since you all are ruby experts it might not be a challenging task for you. But for us it is very difficult to find people who know ruby on rails and are willing to contribute their skills for a social cause.You can find more details at: https://jobs.hasgeek.com/view/9308e  .For reference i am also attaching a brief concept note on what this tool is capable of doing. If you are busy with some other engagements and cannot work on this project, we would be really thankful to you if you can help us spread the word or can connect us with someone who can help us. 



Please let me know what you think. Any suggestions are welcome.Waiting for your reply.

 

Sunandan Madanl | Student - Programme in Rural Management | IRMA|

Roll No: 33084 |M: +919601409658 |

P
Please don't print this e-mail unless you really need to

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/249bedd5-91ba-4494-b6b7-a62df2909d4b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ruby on Rails

Hi All,

I'm making a Rails app in which users have folders in which to organize
journal entries. I'm trying to load a partial into view that displays
D3.js visualizations based on the character count of each journal entry.
The JavaScript code and HTML inject properly, but I don't think the JS
is executing.

Show.js.erb looks like this:
$("#actual-right").append( "<%=j render :partial => 'contents', :locals
=> {:folder => @folder } %>" );

$("#jscripts").append("<%=j render :partial => 'show', formats: :js,
:locals => {:folder => @folder} %>");

The second line appends _show.js.erb with the rest of my JavaScript in
application.html.erb. The top line appends some HTML tags for D3.

I need to figure out how to execute the JavaScript so when a user clicks
the link to one of their folders, the HTML and JS are injected and the
graphs are drawn. Attached is my _show.js.erb file -- I have tried
wrapping all the D3 code in a function and calling it at the bottom, but
that didn't work.

Any advice would be appreciated!

Attachments:
http://www.ruby-forum.com/attachment/8638/_show.js.erb


--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1c7e5416b8beb12e5ae21b0781b4eaa1%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ruby on Rails



On Monday, July 29, 2013 2:15:38 PM UTC-4, Ruby-Forum.com User wrote:

I was working on this rails tutorial:
"http://guides.rubyon...ng_started.html" and than I got to the part that
you are supposed to show the title and data for an individual post (5.7)
and got an error when it was supposed to show the data, so I put
@post.inspect into /app/views/posts/show.html.erb and I got nil, and
same with the index page where it lists all of the posts, but I checked
and the data is in the database correctly.(in case this helps, on part
4.3 where you're supposed to uncomment # root to: "welcome#index", the
file said #root "welcome#index" instead, even though I'm using rails 4.0
and ruby 2.0) Here's my controller file:

class PostsController < ApplicationController
def new
end
def create
@post = Post.new(post_params.permit(:title, :text))
@post.save
redirect_to @post
end
private
def post_params
params.require(:post).permit(:title, :text)
end
def show
@post = Post.find(params[:id])
end
def index
@posts = Post.all
end
end

here's the error:

NoMethodError in Posts#show
Showing /home/hiram/rails/meme/app/views/posts/show.html.erb where line
#3 raised:
undefined method `title' for nil:NilClass
Extracted source (around line #3):
1 <p>
2 <strong>Title:</strong>
3 <%= @post.title %>
4 </p>
5
6 <p>
Rails.root: /home/hiram/rails/meme

--
Posted via http://www.ruby-forum.com/.

The following code:

private
   def post_params
      params.require(:post).permit(:title, :text)
   end

must be at the end of the file.  Once you declare private, everything defined after that will be considered private unless you change the declaration.  The way you have this coded, the methods show and index will now be private and not available to the view.
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b90f3d98-4074-4872-9fb1-5af6a74c61b6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.