{"id":15405862,"url":"https://github.com/elia/obviews","last_synced_at":"2025-04-17T05:20:53.661Z","repository":{"id":56886128,"uuid":"4512827","full_name":"elia/obviews","owner":"elia","description":"Restores the obvious OOP method interface between Rails controllers and views","archived":false,"fork":false,"pushed_at":"2013-09-25T22:52:36.000Z","size":520,"stargazers_count":12,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T13:21:31.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://elia.github.com/obviews","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-31T20:55:54.000Z","updated_at":"2023-08-23T03:19:40.000Z","dependencies_parsed_at":"2022-08-21T00:50:13.422Z","dependency_job_id":null,"html_url":"https://github.com/elia/obviews","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elia%2Fobviews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elia%2Fobviews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elia%2Fobviews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elia%2Fobviews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elia","download_url":"https://codeload.github.com/elia/obviews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249318869,"owners_count":21250429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:18:47.223Z","updated_at":"2025-04-17T05:20:53.635Z","avatar_url":"https://github.com/elia.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obviews\n\n\n\n\n## Example\n\nIn the controller\n\n```ruby\nclass PostsController \u003c ApplicationController\n  expose :blog, :posts\n  \n  def index\n  end\n  \n  def show\n    expose post: posts.first\n  end\n  \n  private\n  \n  def blog\n    @blog ||= Blog.first\n  end\n  \n  def posts\n    blog.posts\n  end\nend\n```\n\n\nIn the views:\n\n```haml\n-# views/posts/index.html.haml\n%h1= blog.title\n= render posts\n\n-# views/posts/show.html.haml\n%h1= blog.title\n= render post\n\n-# views/posts/_post.html.haml\n.post\n  %h2= post.title\n  %p= post.body\n```\n\n\n\nThis project rocks and uses MIT-LICENSE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felia%2Fobviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felia%2Fobviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felia%2Fobviews/lists"}